public class Shape extends Object
| Constructor and Description |
|---|
Shape() |
Shape(org.openrdf.model.Resource id) |
| Modifier and Type | Method and Description |
|---|---|
Shape |
add(PropertyConstraint c) |
Constraint |
getConstraint() |
PropertyConstraint |
getDimensionConstraint(org.openrdf.model.URI dimension) |
org.openrdf.model.URI |
getEquivalentRelationalShape() |
org.openrdf.model.Resource |
getId() |
Context |
getJsonldContext()
Get the default JSON-LD context for this shape.
|
List<PropertyConstraint> |
getProperty() |
PropertyConstraint |
getPropertyConstraint(org.openrdf.model.URI predicate) |
org.openrdf.model.URI |
getScopeClass() |
PropertyConstraint |
getTimeParam() |
boolean |
hasPropertyConstraint(org.openrdf.model.URI predicate) |
PropertyConstraint |
property(org.openrdf.model.URI predicate)
Get the PropertyConstraint with the specified predicate.
|
Shape |
setConstraint(Constraint constraint) |
void |
setEquivalentRelationalShape(org.openrdf.model.URI equivalentRelationalShape) |
void |
setJsonldContext(Context jsonldContext)
Set the default JSON-LD context for this shape
|
void |
setScopeClass(org.openrdf.model.URI scopeClass) |
void |
toJson(com.fasterxml.jackson.core.JsonGenerator json) |
String |
toString() |
public List<PropertyConstraint> getProperty()
public Constraint getConstraint()
public Shape setConstraint(Constraint constraint)
public PropertyConstraint getTimeParam()
public PropertyConstraint getDimensionConstraint(org.openrdf.model.URI dimension)
public PropertyConstraint getPropertyConstraint(org.openrdf.model.URI predicate)
public boolean hasPropertyConstraint(org.openrdf.model.URI predicate)
public PropertyConstraint property(org.openrdf.model.URI predicate)
predicate - The predicate of the requested PropertyConstraintpublic Shape add(PropertyConstraint c)
public org.openrdf.model.URI getScopeClass()
public void setScopeClass(org.openrdf.model.URI scopeClass)
public org.openrdf.model.Resource getId()
public void toJson(com.fasterxml.jackson.core.JsonGenerator json)
throws IOException
IOExceptionpublic Context getJsonldContext()
public void setJsonldContext(Context jsonldContext)
jsonldContext - The default JSON-LD context for this shapepublic org.openrdf.model.URI getEquivalentRelationalShape()
public void setEquivalentRelationalShape(org.openrdf.model.URI equivalentRelationalShape)
Copyright © 2016. All rights reserved.