Class BaseSetupRDFS<X>

java.lang.Object
org.apache.jena.rdfs.setup.BaseSetupRDFS<X>
All Implemented Interfaces:
ConfigRDFS<X>
Direct Known Subclasses:
SetupRDFS

public abstract class BaseSetupRDFS<X> extends Object implements ConfigRDFS<X>
Core datastructures needed for RDFS for one vocabulary. To be general, this is in <X> space (e.g. Node, NodeId).
  • Field Details

    • vocabGraph

      public final org.apache.jena.graph.Graph vocabGraph
  • Method Details

    • getSubClassHierarchy

      public Map<X,Set<X>> getSubClassHierarchy()
      Description copied from interface: ConfigRDFS
      Return the sub-class hierarchy - map from class to its subclasses (transitive).
      Specified by:
      getSubClassHierarchy in interface ConfigRDFS<X>
    • getSubPropertyHierarchy

      public Map<X,Set<X>> getSubPropertyHierarchy()
      Description copied from interface: ConfigRDFS
      Return the sub-property hierarchy - map from property to its sub-properties (transitive).
      Specified by:
      getSubPropertyHierarchy in interface ConfigRDFS<X>
    • getPropertyRanges

      public Map<X,Set<X>> getPropertyRanges()
      Description copied from interface: ConfigRDFS
      Return the mapping property to range(s).
      Specified by:
      getPropertyRanges in interface ConfigRDFS<X>
    • getPropertyDomains

      public Map<X,Set<X>> getPropertyDomains()
      Description copied from interface: ConfigRDFS
      Return the mapping property to domains(s).
      Specified by:
      getPropertyDomains in interface ConfigRDFS<X>
    • getSuperClasses

      public Set<X> getSuperClasses(X elt)
      Description copied from interface: ConfigRDFS
      All super-types of an element. Does not include the element unless there is a cycle of length > 1. Returns an empty set of there are no declared superclasses.
      Specified by:
      getSuperClasses in interface ConfigRDFS<X>
    • getSuperClassesInc

      public Set<X> getSuperClassesInc(X elt)
      Description copied from interface: ConfigRDFS
      All super-types of an element, including the element itself.
      Specified by:
      getSuperClassesInc in interface ConfigRDFS<X>
    • getSubClasses

      public Set<X> getSubClasses(X elt)
      Description copied from interface: ConfigRDFS
      All sub-types of an element. Does not include the element unless there is a cycle of length > 1
      Specified by:
      getSubClasses in interface ConfigRDFS<X>
    • getSubClassesInc

      public Set<X> getSubClassesInc(X elt)
      Description copied from interface: ConfigRDFS
      All sub-types of an element, including the element itself
      Specified by:
      getSubClassesInc in interface ConfigRDFS<X>
    • getSuperProperties

      public Set<X> getSuperProperties(X elt)
      Description copied from interface: ConfigRDFS
      All super-properties. Does not include the property itself unless there is a cycle of length > 1.
      Specified by:
      getSuperProperties in interface ConfigRDFS<X>
    • getSuperPropertiesInc

      public Set<X> getSuperPropertiesInc(X elt)
      Description copied from interface: ConfigRDFS
      All super-properties including the property itself.
      Specified by:
      getSuperPropertiesInc in interface ConfigRDFS<X>
    • getSubProperties

      public Set<X> getSubProperties(X elt)
      Description copied from interface: ConfigRDFS
      All sub-properties. Does not include the property itself unless there is a cycle of length > 1.
      Specified by:
      getSubProperties in interface ConfigRDFS<X>
    • getSubPropertiesInc

      public Set<X> getSubPropertiesInc(X elt)
      Description copied from interface: ConfigRDFS
      All sub-properties including the property itself.
      Specified by:
      getSubPropertiesInc in interface ConfigRDFS<X>
    • hasClassDeclarations

      public boolean hasClassDeclarations()
      Description copied from interface: ConfigRDFS
      Does this setup have any class/subclass declarations?
      Specified by:
      hasClassDeclarations in interface ConfigRDFS<X>
    • hasPropertyDeclarations

      public boolean hasPropertyDeclarations()
      Description copied from interface: ConfigRDFS
      Does this setup have any property/subproperty declarations?
      Specified by:
      hasPropertyDeclarations in interface ConfigRDFS<X>
    • hasRangeDeclarations

      public boolean hasRangeDeclarations()
      Description copied from interface: ConfigRDFS
      Does this setup have any range declarations?
      Specified by:
      hasRangeDeclarations in interface ConfigRDFS<X>
    • hasDomainDeclarations

      public boolean hasDomainDeclarations()
      Description copied from interface: ConfigRDFS
      Does this setup have any domain declarations?
      Specified by:
      hasDomainDeclarations in interface ConfigRDFS<X>
    • hasOnlyPropertyDeclarations

      public boolean hasOnlyPropertyDeclarations()
      Description copied from interface: ConfigRDFS
      Does this setup have any property/subproperty declarations and no range, domain or subClass (which means no rdf:type work needed).
      Specified by:
      hasOnlyPropertyDeclarations in interface ConfigRDFS<X>
    • hasRDFS

      public boolean hasRDFS()
      Description copied from interface: ConfigRDFS
      Does this setup have any RDFS?
      Specified by:
      hasRDFS in interface ConfigRDFS<X>
    • getRange

      public Set<X> getRange(X elt)
      Description copied from interface: ConfigRDFS
      Get the range(s) of a property - only includes mentioned range types, not supertypes.
      Specified by:
      getRange in interface ConfigRDFS<X>
    • getDomain

      public Set<X> getDomain(X elt)
      Description copied from interface: ConfigRDFS
      Get the domain(s) of a property - only includes mentioned domain types, not supertypes.
      Specified by:
      getDomain in interface ConfigRDFS<X>
    • getPropertiesByRange

      public Set<X> getPropertiesByRange(X elt)
      Description copied from interface: ConfigRDFS
      Get the properties that directly mention 'type' as their range.
      Specified by:
      getPropertiesByRange in interface ConfigRDFS<X>
    • getPropertiesByDomain

      public Set<X> getPropertiesByDomain(X elt)
      Description copied from interface: ConfigRDFS
      Get the properties that directly mention 'type' as their domain.
      Specified by:
      getPropertiesByDomain in interface ConfigRDFS<X>