Interface InstanceOntologyOrderPredicate

    • Method Detail

      • getRootNodeURI

        String getRootNodeURI()

        getRootNodeURI.

        Returns:
        root node
      • getRelations

        Set<String> getRelations()

        getRelations.

        Returns:
        set of relations
      • init

        void init​(String rootNodeUri,
                  String... relations)
        (Re)Inits the predicate with the given root uri and relations. Collects a set of valid values from the ontology respecting the given root node and added relations.
        Parameters:
        rootNodeUri - the root node uri
        relations - the list of relations that should be added.
      • init

        void init()
        Re-inits the predicate. Uses a given root node and relations. Collects a set of valid values from the ontology.
      • getHierarchyHeight

        int getHierarchyHeight()

        getHierarchyHeight.

        Returns:
        a int
      • getParentNodes

        Set<org.apache.jena.rdf.model.Resource> getParentNodes​(org.apache.jena.rdf.model.Resource node)

        getParentNodes.

        Parameters:
        node - a Resource object
        Returns:
        a Set object
      • setParentNodes

        void setParentNodes​(org.apache.jena.rdf.model.Resource node,
                            Set<org.apache.jena.rdf.model.Resource> parentNodes)

        setParentNodes.

        Parameters:
        node - a Resource object
        parentNodes - a Set object
      • getIntersection

        Boolean getIntersection​(Set<org.apache.jena.rdf.model.Resource> nodeSetA,
                                Set<org.apache.jena.rdf.model.Resource> nodeSetB)

        getIntersection.

        Parameters:
        nodeSetA - a Set object
        nodeSetB - a Set object
        Returns:
        a Boolean object
      • setIntersection

        void setIntersection​(Set<org.apache.jena.rdf.model.Resource> nodeSetA,
                             Set<org.apache.jena.rdf.model.Resource> nodeSetB,
                             boolean intersection)

        setIntersection.

        Parameters:
        nodeSetA - a Set object
        nodeSetB - a Set object
        intersection - a boolean