Package cz.vutbr.fit.layout.rdf.model
Class RDFAreaTree
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseArtifact
-
- cz.vutbr.fit.layout.impl.DefaultAreaTree
-
- cz.vutbr.fit.layout.rdf.model.RDFAreaTree
-
- All Implemented Interfaces:
AreaTree,Artifact,SearchableAreaContainer,RDFArtifact,RDFResource
public class RDFAreaTree extends DefaultAreaTree implements RDFResource, RDFArtifact
- Author:
- burgetr
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<org.eclipse.rdf4j.model.IRI,RDFArea>areaIrisprotected Map<org.eclipse.rdf4j.model.IRI,RDFLogicalArea>logicalAreaIris
-
Constructor Summary
Constructors Constructor Description RDFAreaTree(AreaTree src, org.eclipse.rdf4j.model.IRI targetIri)RDFAreaTree(org.eclipse.rdf4j.model.IRI parentIri, org.eclipse.rdf4j.model.IRI pageIri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFAreafindAreaByIri(org.eclipse.rdf4j.model.IRI iri)RDFLogicalAreafindLogicalAreaByUri(org.eclipse.rdf4j.model.IRI iri)Set<org.eclipse.rdf4j.model.Statement>getAdditionalStatements()Returns additional RDF statements that do not influence the properties of the artifact itself but should be preserved together with the artifact (e.g. additional annotations).Map<org.eclipse.rdf4j.model.IRI,RDFArea>getAreaIris()Map<org.eclipse.rdf4j.model.IRI,RDFLogicalArea>getLogicalAreaIris()voidrecompute()Recomputes the possible computed values in the artifacts after the RDF representation has changed (e.g. some statements have been added or removed).voidsetAdditionalStatements(Set<org.eclipse.rdf4j.model.Statement> additionalStatements)voidsetAreaIris(Map<org.eclipse.rdf4j.model.IRI,RDFArea> areaIris)voidsetLogicalAreaUris(Map<org.eclipse.rdf4j.model.IRI,RDFLogicalArea> logicalAreaIris)-
Methods inherited from class cz.vutbr.fit.layout.impl.DefaultAreaTree
createArea, createArea, createArea, createArea, getAreaAt, getAreaByName, getAreasAt, getArtifactType, getMaxAreaId, getNextAreaId, getPageIri, getRoot, setNextAreaId, setPageIri, setRoot, toString, updateNextAreaId, updateTopologies
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseArtifact
equals, getCreatedOn, getCreator, getCreatorParams, getIri, getLabel, getMetadata, getParentIri, hashCode, setCreatedOn, setCreator, setCreatorParams, setIri, setLabel, setMetadata, setParentIri
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cz.vutbr.fit.layout.model.Artifact
getCreatedOn, getCreator, getCreatorParams, getIri, getLabel, getMetadata, getParentIri, setIri
-
Methods inherited from interface cz.vutbr.fit.layout.rdf.model.RDFResource
getIri
-
-
-
-
Field Detail
-
logicalAreaIris
protected Map<org.eclipse.rdf4j.model.IRI,RDFLogicalArea> logicalAreaIris
-
-
Constructor Detail
-
RDFAreaTree
public RDFAreaTree(org.eclipse.rdf4j.model.IRI parentIri, org.eclipse.rdf4j.model.IRI pageIri)
-
RDFAreaTree
public RDFAreaTree(AreaTree src, org.eclipse.rdf4j.model.IRI targetIri)
-
-
Method Detail
-
findAreaByIri
public RDFArea findAreaByIri(org.eclipse.rdf4j.model.IRI iri)
-
getLogicalAreaIris
public Map<org.eclipse.rdf4j.model.IRI,RDFLogicalArea> getLogicalAreaIris()
-
setLogicalAreaUris
public void setLogicalAreaUris(Map<org.eclipse.rdf4j.model.IRI,RDFLogicalArea> logicalAreaIris)
-
findLogicalAreaByUri
public RDFLogicalArea findLogicalAreaByUri(org.eclipse.rdf4j.model.IRI iri)
-
setAdditionalStatements
public void setAdditionalStatements(Set<org.eclipse.rdf4j.model.Statement> additionalStatements)
-
getAdditionalStatements
public Set<org.eclipse.rdf4j.model.Statement> getAdditionalStatements()
Description copied from interface:RDFArtifactReturns additional RDF statements that do not influence the properties of the artifact itself but should be preserved together with the artifact (e.g. additional annotations).- Specified by:
getAdditionalStatementsin interfaceRDFArtifact- Returns:
- a set of statements
-
recompute
public void recompute()
Description copied from interface:RDFArtifactRecomputes the possible computed values in the artifacts after the RDF representation has changed (e.g. some statements have been added or removed).- Specified by:
recomputein interfaceRDFArtifact
-
-