@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 ShaclShape
extends org.eclipse.lyo.oslc4j.core.model.AbstractResource
Constructor and Description |
---|
ShaclShape() |
ShaclShape(URI about) |
public ShaclShape()
public ShaclShape(URI about)
public void addIgnoredProperties(URI ignoredPropertyPredicate)
public void addProperty(ShaclProperty property)
public void removeProperty(URI predicate)
public ShaclProperty getShaclProperty(URI definition)
@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<ShaclProperty> getShaclProperties()
public void setShaclProperties(ShaclProperty[] properties)
@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.