Class ModelTransformer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.rdf4j.model.IRI getAreaIri​(org.eclipse.rdf4j.model.IRI areaTreeIri, Area area)
      Reuses an area IRI or creates a new one if the box is not an RDFArea.
      protected org.eclipse.rdf4j.model.IRI getBoxIri​(org.eclipse.rdf4j.model.IRI pageIri, Box box)
      Reuses a box IRI or creates a new one if the box is not an RDFBox.
      protected org.eclipse.rdf4j.model.IRI getCurrentIri​(Object obj)
      For RDF resources returns the current object IRI (may be null).
      IRIFactory getIriFactory()
      Gets the IRI factory used for creating the IRIs when building a RDF graph.
      protected org.eclipse.rdf4j.model.IRI getLogicalAreaIri​(org.eclipse.rdf4j.model.IRI areaTreeIri, LogicalArea area, int ord)
      Reuses a logical area IRI or creates a new one if the box is not an RDFLogicalArea.
      protected org.eclipse.rdf4j.model.IRI getTextChunkIri​(org.eclipse.rdf4j.model.IRI chunkSetIri, TextChunk chunk)
      Reuses a text chunk IRI or creates a new one if the box is not an RDFTextChunk.
      void setIriFactory​(IRIFactory iriFactory)
      Configures the IRI factory used for creating the IRIs when building a RDF graph.
    • Constructor Detail

      • ModelTransformer

        public ModelTransformer​(IRIFactory iriFactory)
    • Method Detail

      • getIriFactory

        public IRIFactory getIriFactory()
        Gets the IRI factory used for creating the IRIs when building a RDF graph.
      • setIriFactory

        public void setIriFactory​(IRIFactory iriFactory)
        Configures the IRI factory used for creating the IRIs when building a RDF graph.
        Parameters:
        iriFactory -
      • getBoxIri

        protected org.eclipse.rdf4j.model.IRI getBoxIri​(org.eclipse.rdf4j.model.IRI pageIri,
                                                        Box box)
        Reuses a box IRI or creates a new one if the box is not an RDFBox.
        Parameters:
        pageIri - the IRI of the page the box belongs to
        box - the box itself
        Returns:
        the IRI
      • getAreaIri

        protected org.eclipse.rdf4j.model.IRI getAreaIri​(org.eclipse.rdf4j.model.IRI areaTreeIri,
                                                         Area area)
        Reuses an area IRI or creates a new one if the box is not an RDFArea.
        Parameters:
        areaTreeIri - the IRI of the area tree the box belongs to
        area - the area itself
        Returns:
        the IRI
      • getLogicalAreaIri

        protected org.eclipse.rdf4j.model.IRI getLogicalAreaIri​(org.eclipse.rdf4j.model.IRI areaTreeIri,
                                                                LogicalArea area,
                                                                int ord)
        Reuses a logical area IRI or creates a new one if the box is not an RDFLogicalArea.
        Parameters:
        areaTreeIri - the IRI of the area tree the box belongs to
        area - the logical area itself
        Returns:
        the IRI
      • getTextChunkIri

        protected org.eclipse.rdf4j.model.IRI getTextChunkIri​(org.eclipse.rdf4j.model.IRI chunkSetIri,
                                                              TextChunk chunk)
        Reuses a text chunk IRI or creates a new one if the box is not an RDFTextChunk.
        Parameters:
        chunkSetIri - the IRI of the chunk set the chunk belongs to
        chunk - the text chunk itself
        Returns:
        the IRI
      • getCurrentIri

        protected org.eclipse.rdf4j.model.IRI getCurrentIri​(Object obj)
        For RDF resources returns the current object IRI (may be null).
        Parameters:
        obj - the object
        Returns:
        current IRI for RDF resources, null otherwise.