Package cz.vutbr.fit.layout.rdf
Class RDFArtifactInfo
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseArtifact
-
- cz.vutbr.fit.layout.api.ArtifactInfo
-
- cz.vutbr.fit.layout.rdf.RDFArtifactInfo
-
- All Implemented Interfaces:
Artifact
- Direct Known Subclasses:
AreaTreeInfo
,ChunkSetInfo
,PageInfo
public class RDFArtifactInfo extends ArtifactInfo
Information about an artifact obtained from a RDF model.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description RDFArtifactInfo(org.eclipse.rdf4j.model.Model model, org.eclipse.rdf4j.model.IRI artifactIri)
RDFArtifactInfo(org.eclipse.rdf4j.model.Model model, org.eclipse.rdf4j.model.IRI artifactIri, boolean useAdditionalStatements)
RDFArtifactInfo(org.eclipse.rdf4j.query.BindingSet binding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyToArtifact(BaseArtifact a)
Set<org.eclipse.rdf4j.model.Statement>
getAdditionalStatements()
protected boolean
processStatement(org.eclipse.rdf4j.model.Statement st)
Processes a model statement and changes the artifact accordingly.-
Methods inherited from class cz.vutbr.fit.layout.api.ArtifactInfo
getArtifactType, setArtifactType, toString
-
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
-
-
-
-
Constructor Detail
-
RDFArtifactInfo
public RDFArtifactInfo(org.eclipse.rdf4j.model.Model model, org.eclipse.rdf4j.model.IRI artifactIri)
-
RDFArtifactInfo
public RDFArtifactInfo(org.eclipse.rdf4j.model.Model model, org.eclipse.rdf4j.model.IRI artifactIri, boolean useAdditionalStatements)
-
RDFArtifactInfo
public RDFArtifactInfo(org.eclipse.rdf4j.query.BindingSet binding)
-
-
Method Detail
-
getAdditionalStatements
public Set<org.eclipse.rdf4j.model.Statement> getAdditionalStatements()
-
processStatement
protected boolean processStatement(org.eclipse.rdf4j.model.Statement st)
Processes a model statement and changes the artifact accordingly.- Parameters:
st
- the statement to process- Returns:
true
if the statement was used for changing the model,false
when the statement was ignored.
-
applyToArtifact
public void applyToArtifact(BaseArtifact a)
-
-