Class ModelTransformer

    • 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