Package cz.vutbr.fit.layout.rdf.model
Class RDFChunkSet
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseArtifact
-
- cz.vutbr.fit.layout.impl.DefaultChunkSet
-
- cz.vutbr.fit.layout.rdf.model.RDFChunkSet
-
- All Implemented Interfaces:
Artifact
,ChunkSet
,RDFArtifact
,RDFResource
public class RDFChunkSet extends DefaultChunkSet implements RDFResource, RDFArtifact
- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description RDFChunkSet(org.eclipse.rdf4j.model.IRI parentIri)
RDFChunkSet(org.eclipse.rdf4j.model.IRI parentIri, Set<TextChunk> chunks)
RDFChunkSet(org.eclipse.rdf4j.model.IRI parentIri, org.eclipse.rdf4j.model.IRI areaTreeIri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFTextChunk
findTextChunkByIri(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,RDFTextChunk>
getChunkIris()
void
recompute()
Recomputes the possible computed values in the artifacts after the RDF representation has changed (e.g. some statements have been added or removed).void
setAdditionalStatements(Set<org.eclipse.rdf4j.model.Statement> additionalStatements)
void
setChunkIris(Map<org.eclipse.rdf4j.model.IRI,RDFTextChunk> chunkIris)
-
Methods inherited from class cz.vutbr.fit.layout.impl.DefaultChunkSet
addTextChunk, createTextChunk, getAreaTreeIri, getArtifactType, getNextAreaId, getPageIri, getTextChunks, getTopology, invalidateTopology, setAreaTreeIri, setNextAreaId, setPageIri, setTextChunks, updateTopology
-
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, toString, 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
-
-
-
-
Method Detail
-
setAdditionalStatements
public void setAdditionalStatements(Set<org.eclipse.rdf4j.model.Statement> additionalStatements)
-
getAdditionalStatements
public Set<org.eclipse.rdf4j.model.Statement> getAdditionalStatements()
Description copied from interface:RDFArtifact
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).- Specified by:
getAdditionalStatements
in interfaceRDFArtifact
- Returns:
- a set of statements
-
getChunkIris
public Map<org.eclipse.rdf4j.model.IRI,RDFTextChunk> getChunkIris()
-
setChunkIris
public void setChunkIris(Map<org.eclipse.rdf4j.model.IRI,RDFTextChunk> chunkIris)
-
findTextChunkByIri
public RDFTextChunk findTextChunkByIri(org.eclipse.rdf4j.model.IRI iri)
-
recompute
public void recompute()
Description copied from interface:RDFArtifact
Recomputes the possible computed values in the artifacts after the RDF representation has changed (e.g. some statements have been added or removed).- Specified by:
recompute
in interfaceRDFArtifact
-
-