Class DefaultIRIFactory

  • All Implemented Interfaces:
    IRIFactory

    public class DefaultIRIFactory
    extends Object
    implements IRIFactory
    A default FitLayout IRI factory.
    Author:
    burgetr
    • Constructor Detail

      • DefaultIRIFactory

        public DefaultIRIFactory()
    • Method Detail

      • createPageSetURI

        public org.eclipse.rdf4j.model.IRI createPageSetURI​(String name)
        Creates a page set IRI from its name.
        Specified by:
        createPageSetURI in interface IRIFactory
        Parameters:
        name - the name of the page set
        Returns:
        the created IRI
      • createArtifactIri

        public org.eclipse.rdf4j.model.IRI createArtifactIri​(long seq)
        Description copied from interface: IRIFactory
        Creates an IRI of an artifact from its sequence number.
        Specified by:
        createArtifactIri in interface IRIFactory
        Returns:
      • createArtifactIri

        public org.eclipse.rdf4j.model.IRI createArtifactIri​(String id)
        Description copied from interface: IRIFactory
        Creates an IRI if an artifact from its id.
        Specified by:
        createArtifactIri in interface IRIFactory
        Returns:
      • createBoxURI

        public org.eclipse.rdf4j.model.IRI createBoxURI​(org.eclipse.rdf4j.model.IRI pageUri,
                                                        Box box)
        Description copied from interface: IRIFactory
        Creates a box IRI.
        Specified by:
        createBoxURI in interface IRIFactory
        Returns:
      • createBoundsURI

        public org.eclipse.rdf4j.model.IRI createBoundsURI​(org.eclipse.rdf4j.model.IRI boxUri,
                                                           String type)
        Description copied from interface: IRIFactory
        Creates a bouds rectange IRI
        Specified by:
        createBoundsURI in interface IRIFactory
        Parameters:
        boxUri - the corresponding box IRI
        type - bounds type used to distinguish different recatngles assigned to a single box (e.g. "v" for visual)
        Returns:
      • createBorderURI

        public org.eclipse.rdf4j.model.IRI createBorderURI​(org.eclipse.rdf4j.model.IRI boxUri,
                                                           String side)
        Description copied from interface: IRIFactory
        Creates an IRI of a border description.
        Specified by:
        createBorderURI in interface IRIFactory
        Parameters:
        boxUri - the corresponding box IRI
        side - the side ("top", "right", "bottom", "left")
        Returns:
      • createAttributeURI

        public org.eclipse.rdf4j.model.IRI createAttributeURI​(org.eclipse.rdf4j.model.IRI boxUri,
                                                              String name)
        Description copied from interface: IRIFactory
        Creates an IRI of an HTML attribute description.
        Specified by:
        createAttributeURI in interface IRIFactory
        Parameters:
        boxUri - the corresponding box IRI
        name - attribute name
        Returns:
      • createContentObjectURI

        public org.eclipse.rdf4j.model.IRI createContentObjectURI​(org.eclipse.rdf4j.model.IRI pageUri,
                                                                  int seq)
        Description copied from interface: IRIFactory
        Create an IRI of a content object (including images)
        Specified by:
        createContentObjectURI in interface IRIFactory
        Parameters:
        pageUri - the source page IRI
        seq - object sequence number within the page
        Returns:
      • createAreaURI

        public org.eclipse.rdf4j.model.IRI createAreaURI​(org.eclipse.rdf4j.model.IRI areaTreeNode,
                                                         Area area)
        Description copied from interface: IRIFactory
        Creates a visual area IRI.
        Specified by:
        createAreaURI in interface IRIFactory
        Parameters:
        areaTreeNode - the uri of the owning area tree.
        area - the area to create the IRI for
        Returns:
      • createLogicalAreaURI

        public org.eclipse.rdf4j.model.IRI createLogicalAreaURI​(org.eclipse.rdf4j.model.IRI areaTreeNode,
                                                                int cnt)
        Description copied from interface: IRIFactory
        Creates a logical area IRI.
        Specified by:
        createLogicalAreaURI in interface IRIFactory
        Parameters:
        areaTreeNode - the uri of the owning logical tree.
        cnt - the logical area ID
        Returns:
      • createTagSupportURI

        public org.eclipse.rdf4j.model.IRI createTagSupportURI​(org.eclipse.rdf4j.model.IRI areaUri,
                                                               Tag tag)
        Description copied from interface: IRIFactory
        Creates an IRI for a tag support assignment description.
        Specified by:
        createTagSupportURI in interface IRIFactory
        Returns:
      • createTextChunkURI

        public org.eclipse.rdf4j.model.IRI createTextChunkURI​(org.eclipse.rdf4j.model.IRI chunkSetUri,
                                                              TextChunk chunk)
        Description copied from interface: IRIFactory
        Creates a text chunk IRI.
        Specified by:
        createTextChunkURI in interface IRIFactory
        Parameters:
        chunkSetUri - the IRI of the owning chunk set
        chunk - the text chunk itself
        Returns:
        the created IRI
      • createRelationURI

        public org.eclipse.rdf4j.model.IRI createRelationURI​(Relation rel)
        Description copied from interface: IRIFactory
        Creates a relation IRI.
        Specified by:
        createRelationURI in interface IRIFactory
        Parameters:
        rel - the relation
        Returns:
        the created IRI
      • decodeRelationURI

        public String decodeRelationURI​(org.eclipse.rdf4j.model.IRI iri)
        Description copied from interface: IRIFactory
        Decodes the relation name from the relation IRI.
        Specified by:
        decodeRelationURI in interface IRIFactory
        Parameters:
        iri - the relation IRI
        Returns:
        the relation name or null if the iri doesn't seem to identify a relation.
      • createSequenceURI

        public org.eclipse.rdf4j.model.IRI createSequenceURI​(String name)
        Creates a sequence IRI from its name.
        Specified by:
        createSequenceURI in interface IRIFactory
        Parameters:
        name - the name of the sequence (alphabetical characters only)
        Returns:
        the created IRI
      • createRelatedIri

        public org.eclipse.rdf4j.model.IRI createRelatedIri​(org.eclipse.rdf4j.model.IRI source,
                                                            String relation)
        Description copied from interface: IRIFactory
        Creates a new IRI from the given source IRI by adding a relation.
        Specified by:
        createRelatedIri in interface IRIFactory
        Parameters:
        source - the source IRI
        relation - the name of the relation between the source IRI and the new one
        Returns:
        The new IRI