Class ShapeTreeResource
java.lang.Object
com.janeirodigital.shapetrees.core.validation.ShapeTreeResource
Represents a resource that contains one or more shape tree definitions. Provides
a factory to lookup, initialize, and cache them.
-
Constructor Summary
ConstructorsConstructorDescriptionShapeTreeResource
(URL url, String body, String contentType, org.apache.jena.rdf.model.Model model) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Clears the local shape tree resource cachegetBody()
static Map<URI,
ShapeTreeResource> org.apache.jena.rdf.model.Model
getModel()
static ShapeTreeResource
getShapeTreeResource
(URL resourceUrl) Looks up and caches the shape tree resource atresourceUrl
.getUrl()
-
Constructor Details
-
ShapeTreeResource
-
-
Method Details
-
getShapeTreeResource
Looks up and caches the shape tree resource atresourceUrl
. Will used cached verion if it exists. Throws exceptions if the resource doesn't exist, or isn't a valid RDF document.- Parameters:
resourceUrl
- URL of shape tree resource- Returns:
- Shape tree resource at provided
resourceUrl
- Throws:
ShapeTreeException
-
clearCache
public static void clearCache()Clears the local shape tree resource cache -
getUrl
-
getBody
-
getContentType
-
getModel
public org.apache.jena.rdf.model.Model getModel() -
getLocalResourceCache
-