public interface SchemaSanitizingObject extends ResourceObject
ResourceObject
providing functionality for sanitizing the repository according to schema information
(see SchemaSanitizingObjectSupport).
When the sanitizeSchema(Resource) method is called the resources values
are made compliant to the schema, e.g. the inverse relation is inserted for a property
that is declared symmetric.
Currently the following schema features are handled by this support class:
rdfs:subPropertyOf: Values set for a subproperty are also set for superproperties.
Values not set for superproperties are removed from subproperties.owl:SymmetricProperty: If Y is the value of a property of this resource then this resource is
also a value for Y (of the respective property).owl:TransitiveProperty: If this resource is in relation to Y and Y to Z by a certain property
then Z is also set as a value of this resources property.owl:inverseOf: The inverse relation is set for all inverse properties.GET_CONNECTION, GET_RESOURCE| Modifier and Type | Method and Description |
|---|---|
boolean |
sanitizeSchema(org.openrdf.model.Resource propertyUri)
Updates the repository in order to comply to the schema information present in it.
|
boolean |
sanitizeSchema(String propertyUri)
Updates the repository in order to comply to the schema information present in it.
|
delete, getResourceAsString, getTriples, setResource, setResourceAsStringgetObjectConnection, getResourceboolean sanitizeSchema(org.openrdf.model.Resource propertyUri)
propertyUri - The IRI of the property which values have changed. This must be the only property that
changed so that sub-/superproperties receive correct values.boolean sanitizeSchema(String propertyUri)
propertyUri - The URI of the property which values have changed. This must be the only property that
changed so that sub-/superproperties receive correct values.Copyright © 2017 Chair of Distributed Information Systems - University of Passau. All rights reserved.