public class ClassStructure extends Object
| Constructor and Description |
|---|
ClassStructure() |
ClassStructure(ValueFormat iriTemplate) |
ClassStructure(ValueFormat iriTemplate,
ShapeManager shapeManager,
OwlReasoner reasoner) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ancestorHasProperty(org.openrdf.model.Resource owlClass,
org.openrdf.model.URI property)
Test whether some ancestor of a given class declares a specific property
|
Set<org.openrdf.model.Resource> |
domainIncludes(org.openrdf.model.URI propertyId) |
Shape |
getNullShape() |
List<PropertyConstraint> |
getProperties(Shape shape)
Get the properties declared by a given shape or any of its ancestors.
|
PropertyStructure |
getProperty(org.openrdf.model.URI propertyId) |
Map<org.openrdf.model.URI,PropertyConstraint> |
getPropertyMap(Shape shape) |
OwlReasoner |
getReasoner() |
Shape |
getShapeForClass(org.openrdf.model.Resource classId)
Get the "canonical" shape for a given OWL class.
|
boolean |
hasProperty(org.openrdf.model.Resource owlClass,
org.openrdf.model.URI property)
Test whether a given class or one of its ancestors declares a specific property.
|
boolean |
hasProperty(Shape canonicalShape,
org.openrdf.model.URI property)
Test whether a given class or one of its ancestors declares a specific property.
|
boolean |
hasSubClass(Shape shape) |
boolean |
hasSuperClass(Shape shape) |
void |
init(ShapeManager shapeManager,
OwlReasoner reasoner) |
boolean |
isNullShape(Shape shape) |
Set<org.openrdf.model.Resource> |
listClasses() |
Collection<Shape> |
listClassShapes() |
Collection<PropertyStructure> |
listProperties() |
List<org.openrdf.model.URI> |
listSubclasses(Shape shape) |
Shape |
shapeForClass(org.openrdf.model.Resource classId) |
List<Shape> |
subClasses(Shape shape) |
List<Shape> |
superClasses(Shape shape) |
List<Shape> |
transitiveClosure(Shape s)
Get the set consisting of a given shape plus all of its superclasses and subclasses.
|
public ClassStructure()
public ClassStructure(ValueFormat iriTemplate)
public ClassStructure(ValueFormat iriTemplate, ShapeManager shapeManager, OwlReasoner reasoner)
public OwlReasoner getReasoner()
public Collection<PropertyStructure> listProperties()
public PropertyStructure getProperty(org.openrdf.model.URI propertyId)
public Set<org.openrdf.model.Resource> domainIncludes(org.openrdf.model.URI propertyId)
public Collection<Shape> listClassShapes()
public Set<org.openrdf.model.Resource> listClasses()
public void init(ShapeManager shapeManager, OwlReasoner reasoner)
public Shape getShapeForClass(org.openrdf.model.Resource classId) throws OwlClassNotFoundException
classId - The id for the OWL class whose shape is to be returned.OwlClassNotFoundExceptionpublic Shape shapeForClass(org.openrdf.model.Resource classId)
public boolean isNullShape(Shape shape)
public boolean hasSubClass(Shape shape)
public Map<org.openrdf.model.URI,PropertyConstraint> getPropertyMap(Shape shape)
public List<PropertyConstraint> getProperties(Shape shape)
shape - The shape whose properties are to be returned.public List<Shape> transitiveClosure(Shape s)
public boolean hasProperty(org.openrdf.model.Resource owlClass,
org.openrdf.model.URI property)
owlClass - The class to be testedproperty - The specific property to be testedpublic boolean hasProperty(Shape canonicalShape, org.openrdf.model.URI property)
canonicalShape - The canonical shape for the class to be testedproperty - The specific property to be testedpublic boolean ancestorHasProperty(org.openrdf.model.Resource owlClass,
org.openrdf.model.URI property)
throws OwlClassNotFoundException
owlClass - The given class to be tested.property - The specific property to be testedOwlClassNotFoundExceptionpublic boolean hasSuperClass(Shape shape)
public Shape getNullShape()
Copyright © 2019. All rights reserved.