Package cz.vutbr.fit.layout.rdf
Interface IRIFactory
-
- All Known Implementing Classes:
DefaultIRIFactory
public interface IRIFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.rdf4j.model.IRIcreateAreaURI(org.eclipse.rdf4j.model.IRI areaTreeUri, Area area)Creates a visual area IRI.org.eclipse.rdf4j.model.IRIcreateArtifactIri(long seq)Creates an IRI of an artifact from its sequence number.org.eclipse.rdf4j.model.IRIcreateArtifactIri(String id)Creates an IRI if an artifact from its id.org.eclipse.rdf4j.model.IRIcreateAttributeURI(org.eclipse.rdf4j.model.IRI boxUri, String name)Creates an IRI of an HTML attribute description.org.eclipse.rdf4j.model.IRIcreateBorderURI(org.eclipse.rdf4j.model.IRI boxUri, String side)Creates an IRI of a border description.org.eclipse.rdf4j.model.IRIcreateBoundsURI(org.eclipse.rdf4j.model.IRI boxUri, String type)Creates a bouds rectange IRIorg.eclipse.rdf4j.model.IRIcreateBoxURI(org.eclipse.rdf4j.model.IRI pageUri, Box box)Creates a box IRI.org.eclipse.rdf4j.model.IRIcreateContentObjectURI(org.eclipse.rdf4j.model.IRI pageUri, int seq)Create an IRI of a content object (including images)org.eclipse.rdf4j.model.IRIcreateLogicalAreaURI(org.eclipse.rdf4j.model.IRI areaTreeUri, int cnt)Creates a logical area IRI.org.eclipse.rdf4j.model.IRIcreatePageSetURI(String name)Creates a page set IRI from its name.org.eclipse.rdf4j.model.IRIcreateRelatedIri(org.eclipse.rdf4j.model.IRI source, String relation)Creates a new IRI from the given source IRI by adding a relation.org.eclipse.rdf4j.model.IRIcreateRelationURI(Relation rel)Creates a relation IRI.org.eclipse.rdf4j.model.IRIcreateSequenceURI(String name)Creates a sequence IRI from its name.org.eclipse.rdf4j.model.IRIcreateTagSupportURI(org.eclipse.rdf4j.model.IRI areaUri, Tag tag)Creates an IRI for a tag support assignment description.org.eclipse.rdf4j.model.IRIcreateTextChunkURI(org.eclipse.rdf4j.model.IRI chunkSetUri, TextChunk chunk)Creates a text chunk IRI.StringdecodeRelationURI(org.eclipse.rdf4j.model.IRI iri)Decodes the relation name from the relation IRI.
-
-
-
Method Detail
-
createPageSetURI
org.eclipse.rdf4j.model.IRI createPageSetURI(String name)
Creates a page set IRI from its name.- Parameters:
name- the name of the page set- Returns:
- the created IRI
-
createArtifactIri
org.eclipse.rdf4j.model.IRI createArtifactIri(long seq)
Creates an IRI of an artifact from its sequence number.- Parameters:
seq-- Returns:
-
createArtifactIri
org.eclipse.rdf4j.model.IRI createArtifactIri(String id)
Creates an IRI if an artifact from its id.- Parameters:
id-- Returns:
-
createBoxURI
org.eclipse.rdf4j.model.IRI createBoxURI(org.eclipse.rdf4j.model.IRI pageUri, Box box)Creates a box IRI.- Parameters:
pageUri-box-- Returns:
-
createBoundsURI
org.eclipse.rdf4j.model.IRI createBoundsURI(org.eclipse.rdf4j.model.IRI boxUri, String type)Creates a bouds rectange IRI- Parameters:
boxUri- the corresponding box IRItype- bounds type used to distinguish different recatngles assigned to a single box (e.g. "v" for visual)- Returns:
-
createBorderURI
org.eclipse.rdf4j.model.IRI createBorderURI(org.eclipse.rdf4j.model.IRI boxUri, String side)Creates an IRI of a border description.- Parameters:
boxUri- the corresponding box IRIside- the side ("top", "right", "bottom", "left")- Returns:
-
createAttributeURI
org.eclipse.rdf4j.model.IRI createAttributeURI(org.eclipse.rdf4j.model.IRI boxUri, String name)Creates an IRI of an HTML attribute description.- Parameters:
boxUri- the corresponding box IRIname- attribute name- Returns:
-
createContentObjectURI
org.eclipse.rdf4j.model.IRI createContentObjectURI(org.eclipse.rdf4j.model.IRI pageUri, int seq)Create an IRI of a content object (including images)- Parameters:
pageUri- the source page IRIseq- object sequence number within the page- Returns:
-
createAreaURI
org.eclipse.rdf4j.model.IRI createAreaURI(org.eclipse.rdf4j.model.IRI areaTreeUri, Area area)Creates a visual area IRI.- Parameters:
areaTreeUri- the uri of the owning area tree.area- the area to create the IRI for- Returns:
-
createLogicalAreaURI
org.eclipse.rdf4j.model.IRI createLogicalAreaURI(org.eclipse.rdf4j.model.IRI areaTreeUri, int cnt)Creates a logical area IRI.- Parameters:
areaTreeUri- the uri of the owning logical tree.cnt- the logical area ID- Returns:
-
createTagSupportURI
org.eclipse.rdf4j.model.IRI createTagSupportURI(org.eclipse.rdf4j.model.IRI areaUri, Tag tag)Creates an IRI for a tag support assignment description.- Parameters:
areaUri-tag-- Returns:
-
createTextChunkURI
org.eclipse.rdf4j.model.IRI createTextChunkURI(org.eclipse.rdf4j.model.IRI chunkSetUri, TextChunk chunk)Creates a text chunk IRI.- Parameters:
chunkSetUri- the IRI of the owning chunk setchunk- the text chunk itself- Returns:
- the created IRI
-
createRelationURI
org.eclipse.rdf4j.model.IRI createRelationURI(Relation rel)
Creates a relation IRI.- Parameters:
rel- the relation- Returns:
- the created IRI
-
decodeRelationURI
String decodeRelationURI(org.eclipse.rdf4j.model.IRI iri)
Decodes the relation name from the relation IRI.- Parameters:
iri- the relation IRI- Returns:
- the relation name or
nullif the iri doesn't seem to identify a relation.
-
createSequenceURI
org.eclipse.rdf4j.model.IRI createSequenceURI(String name)
Creates a sequence IRI from its name.- Parameters:
name- the name of the sequence (alphabetical characters only)- Returns:
- the created IRI
-
createRelatedIri
org.eclipse.rdf4j.model.IRI createRelatedIri(org.eclipse.rdf4j.model.IRI source, String relation)Creates a new IRI from the given source IRI by adding a relation.- Parameters:
source- the source IRIrelation- the name of the relation between the source IRI and the new one- Returns:
- The new IRI
-
-