Package org.apache.jena.rdfs.setup
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 java.lang.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 Summary
Fields Modifier and Type Field Description GraphvocabGraph
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<X>getDomain(X elt)Get the domain(s) of a property - only includes mentioned domain types, not supertypes.java.util.Set<X>getPropertiesByDomain(X elt)Get the properties that directly mention 'type' as their domain.java.util.Set<X>getPropertiesByRange(X elt)Get the properties that directly mention 'type' as their range.java.util.Map<X,java.util.Set<X>>getPropertyDomains()Return the mapping property to domains(s).java.util.Map<X,java.util.Set<X>>getPropertyRanges()Return the mapping property to range(s).java.util.Set<X>getRange(X elt)Get the range(s) of a property - only includes mentioned range types, not supertypes.java.util.Set<X>getSubClasses(X elt)All sub-types of an element.java.util.Set<X>getSubClassesInc(X elt)All sub-types of an element, including the element itselfjava.util.Map<X,java.util.Set<X>>getSubClassHierarchy()Return the sub-class hierarchy - map from class to its subclasses (transitive).java.util.Set<X>getSubProperties(X elt)All sub-properties.java.util.Set<X>getSubPropertiesInc(X elt)All sub-properties including the property itself.java.util.Map<X,java.util.Set<X>>getSubPropertyHierarchy()Return the sub-property hierarchy - map from property to its sub-properties (transitive).java.util.Set<X>getSuperClasses(X elt)All super-types of an element.java.util.Set<X>getSuperClassesInc(X elt)All super-types of an element, including the element itself.java.util.Set<X>getSuperProperties(X elt)All super-properties.java.util.Set<X>getSuperPropertiesInc(X elt)All super-properties including the property itself.booleanhasClassDeclarations()Does this setup have any class/subclass declarations?booleanhasDomainDeclarations()Does this setup have any domain declarations?booleanhasOnlyPropertyDeclarations()Does this setup have any property/subproperty declarations and no range, domain or subClass (which means no rdf:type work needed).booleanhasPropertyDeclarations()Does this setup have any property/subproperty declarations?booleanhasRangeDeclarations()Does this setup have any range declarations?booleanhasRDFS()Does this setup have any RDFS?
-
-
-
Field Detail
-
vocabGraph
public final Graph vocabGraph
-
-
Method Detail
-
getSubClassHierarchy
public java.util.Map<X,java.util.Set<X>> getSubClassHierarchy()
Description copied from interface:ConfigRDFSReturn the sub-class hierarchy - map from class to its subclasses (transitive).- Specified by:
getSubClassHierarchyin interfaceConfigRDFS<X>
-
getSubPropertyHierarchy
public java.util.Map<X,java.util.Set<X>> getSubPropertyHierarchy()
Description copied from interface:ConfigRDFSReturn the sub-property hierarchy - map from property to its sub-properties (transitive).- Specified by:
getSubPropertyHierarchyin interfaceConfigRDFS<X>
-
getPropertyRanges
public java.util.Map<X,java.util.Set<X>> getPropertyRanges()
Description copied from interface:ConfigRDFSReturn the mapping property to range(s).- Specified by:
getPropertyRangesin interfaceConfigRDFS<X>
-
getPropertyDomains
public java.util.Map<X,java.util.Set<X>> getPropertyDomains()
Description copied from interface:ConfigRDFSReturn the mapping property to domains(s).- Specified by:
getPropertyDomainsin interfaceConfigRDFS<X>
-
getSuperClasses
public java.util.Set<X> getSuperClasses(X elt)
Description copied from interface:ConfigRDFSAll 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:
getSuperClassesin interfaceConfigRDFS<X>
-
getSuperClassesInc
public java.util.Set<X> getSuperClassesInc(X elt)
Description copied from interface:ConfigRDFSAll super-types of an element, including the element itself.- Specified by:
getSuperClassesIncin interfaceConfigRDFS<X>
-
getSubClasses
public java.util.Set<X> getSubClasses(X elt)
Description copied from interface:ConfigRDFSAll sub-types of an element. Does not include the element unless there is a cycle of length > 1- Specified by:
getSubClassesin interfaceConfigRDFS<X>
-
getSubClassesInc
public java.util.Set<X> getSubClassesInc(X elt)
Description copied from interface:ConfigRDFSAll sub-types of an element, including the element itself- Specified by:
getSubClassesIncin interfaceConfigRDFS<X>
-
getSuperProperties
public java.util.Set<X> getSuperProperties(X elt)
Description copied from interface:ConfigRDFSAll super-properties. Does not include the property itself unless there is a cycle of length > 1.- Specified by:
getSuperPropertiesin interfaceConfigRDFS<X>
-
getSuperPropertiesInc
public java.util.Set<X> getSuperPropertiesInc(X elt)
Description copied from interface:ConfigRDFSAll super-properties including the property itself.- Specified by:
getSuperPropertiesIncin interfaceConfigRDFS<X>
-
getSubProperties
public java.util.Set<X> getSubProperties(X elt)
Description copied from interface:ConfigRDFSAll sub-properties. Does not include the property itself unless there is a cycle of length > 1.- Specified by:
getSubPropertiesin interfaceConfigRDFS<X>
-
getSubPropertiesInc
public java.util.Set<X> getSubPropertiesInc(X elt)
Description copied from interface:ConfigRDFSAll sub-properties including the property itself.- Specified by:
getSubPropertiesIncin interfaceConfigRDFS<X>
-
hasClassDeclarations
public boolean hasClassDeclarations()
Description copied from interface:ConfigRDFSDoes this setup have any class/subclass declarations?- Specified by:
hasClassDeclarationsin interfaceConfigRDFS<X>
-
hasPropertyDeclarations
public boolean hasPropertyDeclarations()
Description copied from interface:ConfigRDFSDoes this setup have any property/subproperty declarations?- Specified by:
hasPropertyDeclarationsin interfaceConfigRDFS<X>
-
hasRangeDeclarations
public boolean hasRangeDeclarations()
Description copied from interface:ConfigRDFSDoes this setup have any range declarations?- Specified by:
hasRangeDeclarationsin interfaceConfigRDFS<X>
-
hasDomainDeclarations
public boolean hasDomainDeclarations()
Description copied from interface:ConfigRDFSDoes this setup have any domain declarations?- Specified by:
hasDomainDeclarationsin interfaceConfigRDFS<X>
-
hasOnlyPropertyDeclarations
public boolean hasOnlyPropertyDeclarations()
Description copied from interface:ConfigRDFSDoes this setup have any property/subproperty declarations and no range, domain or subClass (which means no rdf:type work needed).- Specified by:
hasOnlyPropertyDeclarationsin interfaceConfigRDFS<X>
-
hasRDFS
public boolean hasRDFS()
Description copied from interface:ConfigRDFSDoes this setup have any RDFS?- Specified by:
hasRDFSin interfaceConfigRDFS<X>
-
getRange
public java.util.Set<X> getRange(X elt)
Description copied from interface:ConfigRDFSGet the range(s) of a property - only includes mentioned range types, not supertypes.- Specified by:
getRangein interfaceConfigRDFS<X>
-
getDomain
public java.util.Set<X> getDomain(X elt)
Description copied from interface:ConfigRDFSGet the domain(s) of a property - only includes mentioned domain types, not supertypes.- Specified by:
getDomainin interfaceConfigRDFS<X>
-
getPropertiesByRange
public java.util.Set<X> getPropertiesByRange(X elt)
Description copied from interface:ConfigRDFSGet the properties that directly mention 'type' as their range.- Specified by:
getPropertiesByRangein interfaceConfigRDFS<X>
-
getPropertiesByDomain
public java.util.Set<X> getPropertiesByDomain(X elt)
Description copied from interface:ConfigRDFSGet the properties that directly mention 'type' as their domain.- Specified by:
getPropertiesByDomainin interfaceConfigRDFS<X>
-
-