Package cz.vutbr.fit.layout.rdf
Class ModelTransformer
- java.lang.Object
-
- cz.vutbr.fit.layout.rdf.ModelTransformer
-
- Direct Known Subclasses:
ModelBuilderBase,ModelLoaderBase
public class ModelTransformer extends Object
A base class for all model creators and loaders.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description ModelTransformer(IRIFactory iriFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.rdf4j.model.IRIgetAreaIri(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.IRIgetBoxIri(org.eclipse.rdf4j.model.IRI pageIri, Box box)Reuses a box IRI or creates a new one if the box is not an RDFBox.IRIFactorygetIriFactory()Gets the IRI factory used for creating the IRIs when building a RDF graph.voidsetIriFactory(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 tobox- 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 toarea- the area itself- Returns:
- the IRI
-
-