Class InstanceResource
java.lang.Object
com.janeirodigital.shapetrees.core.resources.InstanceResource
- Direct Known Subclasses:
ManageableResource
,ManagerResource
InstanceResource is a base class which may represent either a ManageableResource
(a resource that can be managed by a shape tree), or a ManagerResource (a resource
which assigns shape trees to a ManageableResource). This class is only meant to be
extended by ManageableResource and ManagerResource, or used to indicate either
of the two.
-
Method Details
-
getGraph
Get an RDF graph of the body of the InstanceResource. IfbaseUrl
is not provided, the URL of the InstanceResource will be used. An exception is thrown if the body cannot be processed (e.g. if it isn't a valid RDF resource).- Parameters:
baseUrl
- Base URL to use for the graph- Returns:
- RDF graph of the InstanceResource body
- Throws:
ShapeTreeException
-
getUrl
-
getResourceType
-
getAttributes
-
getBody
-
getName
-
isExists
public boolean isExists()
-