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
- Version:
- $version-stub$
- Author:
- Yash Khatri
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Constructor Detail
-
Shape
public Shape()
-
Shape
public Shape(URI about)
-
-
Method Detail
-
addIgnoredProperties
public void addIgnoredProperties(URI ignoredPropertyPredicate)
-
addProperty
public void addProperty(Property property)
-
removeProperty
public void removeProperty(URI predicate)
-
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
public void setType(URI type)
-
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
public void setTargetClass(URI targetClass)
-
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
public void setTargetSubjectsOf(URI targetSubjectsOf)
-
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
public void setTargetObjectsOf(URI targetObjectsOf)
-
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()
-
getIsDefinedBy
@OslcDescription("Specified Is Defined By") @OslcPropertyDefinition("http://www.w3.org/2000/01/rdf-schema#isDefinedBy") @OslcTitle("isDefinedBy") public URI getIsDefinedBy()
-
setIsDefinedBy
public void setIsDefinedBy(URI isDefinedBy)
-
getLabel
@OslcDescription("Specified Label") @OslcPropertyDefinition("http://www.w3.org/2000/01/rdf-schema#label") @OslcTitle("label") public String getLabel()
-
setLabel
public void setLabel(String label)
-
getTargetNode
@OslcDescription("Focus Node") @OslcPropertyDefinition("http://www.w3.org/ns/shacl#targetNode") @OslcReadOnly @OslcTitle("targetNode") public URI getTargetNode()
-
setTargetNode
public void setTargetNode(URI targetNode)
-
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()
-
isReadShaclAnnotations
public boolean isReadShaclAnnotations()
-
setReadShaclAnnotations
public void setReadShaclAnnotations(boolean useShaclAnnotations)
-
-