Class ModelBuilderBase

    • Constructor Detail

      • ModelBuilderBase

        public ModelBuilderBase​(IRIFactory iriFactory)
    • Method Detail

      • addArtifactData

        public void addArtifactData​(org.eclipse.rdf4j.model.Model graph,
                                    Artifact a)
        Stores the common information about an artifact to a model.
        Parameters:
        graph - the model to store the data to
        a - the artifact
      • addContentRectData

        public void addContentRectData​(org.eclipse.rdf4j.model.Model graph,
                                       org.eclipse.rdf4j.model.IRI rectIri,
                                       ContentRect rect)
        Stores the common information about a content rectangle.
        Parameters:
        graph - the model to add the data to
        rectIri - rectangle IRI
        rect - the rectangle to store
      • addTextStyle

        public void addTextStyle​(org.eclipse.rdf4j.model.Model graph,
                                 org.eclipse.rdf4j.model.IRI rectIri,
                                 ContentRect rect)
      • insertBounds

        public org.eclipse.rdf4j.model.IRI insertBounds​(org.eclipse.rdf4j.model.IRI boxIri,
                                                        org.eclipse.rdf4j.model.IRI property,
                                                        String type,
                                                        Rectangular bounds,
                                                        org.eclipse.rdf4j.model.Model graph)
      • insertBorders

        public void insertBorders​(ContentRect box,
                                  org.eclipse.rdf4j.model.IRI boxIri,
                                  org.eclipse.rdf4j.model.Model graph)
      • insertBorder

        public org.eclipse.rdf4j.model.IRI insertBorder​(Border border,
                                                        org.eclipse.rdf4j.model.IRI boxUri,
                                                        String side,
                                                        org.eclipse.rdf4j.model.Model graph)
      • insertSameAs

        public void insertSameAs​(ContentRect node,
                                 org.eclipse.rdf4j.model.IRI nodeIri,
                                 org.eclipse.rdf4j.model.Model graph)
        Adds owl:sameAs links to referenced objects if they are RDF resources.
        Parameters:
        node - the content rect being stored
        nodeIri - the target IRI of the content rect
        graph - The RDF graph to add the links to.