@OslcNamespace(value="http://www.w3.org/ns/shacl#") @OslcName(value="Shape") @OslcResourceShape(title="Shacl Resource Shape", describes="http://www.w3.org/ns/shacl#Shape") public final class Shape extends AbstractResource
Modifier and Type | Method and Description |
---|---|
void |
addIgnoredProperties(URI ignoredPropertyPredicate) |
void |
addProperty(Property property) |
List<URI> |
getIgnoredProperties() |
URI |
getIsDefinedBy() |
String |
getLabel() |
List<Property> |
getShaclProperties() |
Property |
getShaclProperty(URI definition) |
URI |
getTargetClass() |
URI |
getTargetNode() |
URI |
getTargetObjectsOf() |
URI |
getTargetSubjectsOf() |
URI |
getType() |
boolean |
isClosed() |
boolean |
isReadShaclAnnotations() |
void |
removeProperty(URI predicate) |
void |
setClosed(boolean isClosed) |
void |
setIgnoredProperties(List<URI> ignoredProperties) |
void |
setIsDefinedBy(URI isDefinedBy) |
void |
setLabel(String label) |
void |
setReadShaclAnnotations(boolean useShaclAnnotations) |
void |
setShaclProperties(List<Property> properties) |
void |
setTargetClass(URI targetClass) |
void |
setTargetNode(URI targetNode) |
void |
setTargetObjectsOf(URI targetObjectsOf) |
void |
setTargetSubjectsOf(URI targetSubjectsOf) |
void |
setType(URI type) |
String |
toString() |
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
public Shape()
public Shape(URI about)
public void addIgnoredProperties(URI ignoredPropertyPredicate)
public void addProperty(Property property)
public void removeProperty(URI predicate)
@OslcDescription(value="Type or types of resource described by this shape") @OslcPropertyDefinition(value="http://www.w3.org/1999/02/22-rdf-syntax-ns#type") @OslcReadOnly @OslcTitle(value="RDF Type") public URI getType()
public void setType(URI type)
@OslcDescription(value="Type or types of resource described by this shape") @OslcPropertyDefinition(value="http://www.w3.org/ns/shacl#targetClass") @OslcReadOnly @OslcTitle(value="targetClass") public URI getTargetClass()
public void setTargetClass(URI targetClass)
@OslcDescription(value="Type or types of resource described by this shape") @OslcPropertyDefinition(value="http://www.w3.org/ns/shacl#targetSubjectsOf") @OslcReadOnly @OslcTitle(value="targetSubjectsOf") public URI getTargetSubjectsOf()
public void setTargetSubjectsOf(URI targetSubjectsOf)
@OslcDescription(value="Type or types of resource described by this shape") @OslcPropertyDefinition(value="http://www.w3.org/ns/shacl#targetObjectsOf") @OslcReadOnly @OslcTitle(value="targetObjectsOf") public URI getTargetObjectsOf()
public void setTargetObjectsOf(URI targetObjectsOf)
@OslcDescription(value="The properties that are allowed or required by this shape") @OslcName(value="property") @OslcPropertyDefinition(value="http://www.w3.org/ns/shacl#property") @OslcRange(value="http://www.w3.org/ns/shacl#Property") @OslcReadOnly @OslcTitle(value="Properties") @OslcValueType(value=LocalResource) public List<Property> getShaclProperties()
@OslcDescription(value="Specified Is Defined By") @OslcPropertyDefinition(value="http://www.w3.org/2000/01/rdf-schema#isDefinedBy") @OslcTitle(value="isDefinedBy") public URI getIsDefinedBy()
public void setIsDefinedBy(URI isDefinedBy)
@OslcDescription(value="Specified Label") @OslcPropertyDefinition(value="http://www.w3.org/2000/01/rdf-schema#label") @OslcTitle(value="label") public String getLabel()
public void setLabel(String label)
@OslcDescription(value="Focus Node") @OslcPropertyDefinition(value="http://www.w3.org/ns/shacl#targetNode") @OslcReadOnly @OslcTitle(value="targetNode") public URI getTargetNode()
public void setTargetNode(URI targetNode)
@OslcDescription(value="If set to true, the model is not allowed to have any other property apart from those in shapes graph.") @OslcPropertyDefinition(value="http://www.w3.org/ns/shacl#closed") @OslcValueType(value=Boolean) @OslcTitle(value="Closed") public boolean isClosed()
public void setClosed(boolean isClosed)
@OslcDescription(value="Optional SHACL list of properties that are also permitted in addition to those explicitly enumerated via sh:property..") @OslcPropertyDefinition(value="http://www.w3.org/ns/shacl#ignoredProperties") @OslcTitle(value="IgnoredProperties") @OslcRdfCollectionType public List<URI> getIgnoredProperties()
public boolean isReadShaclAnnotations()
public void setReadShaclAnnotations(boolean useShaclAnnotations)
Copyright © 2018. All rights reserved.