Package org.eclipse.lyo.shacl
Class Shape
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.shacl.Shape
- All Implemented Interfaces:
IExtendedResource,IResource
@OslcNamespace("http://www.w3.org/ns/shacl#")
@OslcName("Shape")
@OslcResourceShape(title="Shacl Resource Shape",
describes="http://www.w3.org/ns/shacl#Shape")
public final class Shape
extends AbstractResource
- Since:
- 2.3.0
- Author:
- Yash Khatri
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIgnoredProperties(URI ignoredPropertyPredicate) voidaddProperty(Property property) getLabel()getShaclProperty(URI definition) getType()booleanisClosed()booleanvoidremoveProperty(URI predicate) voidsetClosed(boolean isClosed) voidsetIgnoredProperties(List<URI> ignoredProperties) voidsetIsDefinedBy(URI isDefinedBy) voidvoidsetReadShaclAnnotations(boolean useShaclAnnotations) voidsetShaclProperties(List<Property> properties) voidsetTargetClass(URI targetClass) voidsetTargetNode(URI targetNode) voidsetTargetObjectsOf(URI targetObjectsOf) voidsetTargetSubjectsOf(URI targetSubjectsOf) voidtoString()Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Shape
public Shape() -
Shape
-
-
Method Details
-
toString
-
addIgnoredProperties
-
addProperty
-
removeProperty
-
getShaclProperty
-
getType
@OslcDescription("Type or types of resource described by this shape") @OslcPropertyDefinition("http://www.w3.org/1999/02/22-rdf-syntax-ns#type") @OslcReadOnly @OslcTitle("RDF Type") public URI getType() -
setType
-
getTargetClass
@OslcDescription("Type or types of resource described by this shape") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#targetClass") @OslcReadOnly @OslcTitle("targetClass") public URI getTargetClass() -
setTargetClass
-
getTargetSubjectsOf
@OslcDescription("Type or types of resource described by this shape") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#targetSubjectsOf") @OslcReadOnly @OslcTitle("targetSubjectsOf") public URI getTargetSubjectsOf() -
setTargetSubjectsOf
-
getTargetObjectsOf
@OslcDescription("Type or types of resource described by this shape") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#targetObjectsOf") @OslcReadOnly @OslcTitle("targetObjectsOf") public URI getTargetObjectsOf() -
setTargetObjectsOf
-
getShaclProperties
@OslcDescription("The properties that are allowed or required by this shape") @OslcName("property") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#property") @OslcRange("http://www.w3.org/ns/shacl#Property") @OslcReadOnly @OslcTitle("Properties") @OslcValueType(LocalResource) public List<Property> getShaclProperties() -
setShaclProperties
-
getIsDefinedBy
@OslcDescription("Specified Is Defined By") @OslcPropertyDefinition("http://www.w3.org/2000/01/rdf-schema#isDefinedBy") @OslcTitle("isDefinedBy") public URI getIsDefinedBy() -
setIsDefinedBy
-
getLabel
@OslcDescription("Specified Label") @OslcPropertyDefinition("http://www.w3.org/2000/01/rdf-schema#label") @OslcTitle("label") public String getLabel() -
setLabel
-
getTargetNode
@OslcDescription("Focus Node") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#targetNode") @OslcReadOnly @OslcTitle("targetNode") public URI getTargetNode() -
setTargetNode
-
isClosed
@OslcDescription("If set to true, the model is not allowed to have any other property apart from those in shapes graph.") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#closed") @OslcValueType(Boolean) @OslcTitle("Closed") public boolean isClosed() -
setClosed
public void setClosed(boolean isClosed) -
getIgnoredProperties
@OslcDescription("Optional SHACL list of properties that are also permitted in addition to those explicitly enumerated via sh:property..") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#ignoredProperties") @OslcTitle("IgnoredProperties") @OslcRdfCollectionType public List<URI> getIgnoredProperties() -
setIgnoredProperties
-
isReadShaclAnnotations
public boolean isReadShaclAnnotations() -
setReadShaclAnnotations
public void setReadShaclAnnotations(boolean useShaclAnnotations)
-