public class SHACLPaths extends Object
| Constructor and Description |
|---|
SHACLPaths() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addValueNodes(org.apache.jena.rdf.model.RDFNode focusNode,
org.apache.jena.sparql.path.Path path,
Collection<org.apache.jena.rdf.model.RDFNode> results) |
static void |
addValueNodes(org.apache.jena.rdf.model.RDFNode focusNode,
org.apache.jena.rdf.model.Resource path,
Collection<org.apache.jena.rdf.model.RDFNode> results) |
static void |
appendPath(StringBuffer sb,
org.apache.jena.rdf.model.Resource path)
Renders a given path into a given StringBuffer, using the prefixes supplied by the
Path's Model.
|
static org.apache.jena.rdf.model.Resource |
clonePath(org.apache.jena.rdf.model.Resource path,
org.apache.jena.rdf.model.Model targetModel) |
static org.apache.jena.rdf.model.Resource |
createPath(org.apache.jena.sparql.path.Path path,
org.apache.jena.rdf.model.Model model)
Creates SHACL RDF triples for a given Jena Path (which may have been created using getJenaPath).
|
static Object |
getJenaPath(String string,
org.apache.jena.rdf.model.Model model)
Attempts to parse a given string into a Jena Path.
|
static String |
getPathString(org.apache.jena.rdf.model.Resource path) |
public static void addValueNodes(org.apache.jena.rdf.model.RDFNode focusNode,
org.apache.jena.sparql.path.Path path,
Collection<org.apache.jena.rdf.model.RDFNode> results)
public static void addValueNodes(org.apache.jena.rdf.model.RDFNode focusNode,
org.apache.jena.rdf.model.Resource path,
Collection<org.apache.jena.rdf.model.RDFNode> results)
public static void appendPath(StringBuffer sb, org.apache.jena.rdf.model.Resource path)
sb - the StringBuffer to write intopath - the path resourcepublic static org.apache.jena.rdf.model.Resource clonePath(org.apache.jena.rdf.model.Resource path,
org.apache.jena.rdf.model.Model targetModel)
public static org.apache.jena.rdf.model.Resource createPath(org.apache.jena.sparql.path.Path path,
org.apache.jena.rdf.model.Model model)
path - the Jena Pathmodel - the Model to create the triples inpublic static Object getJenaPath(String string, org.apache.jena.rdf.model.Model model) throws org.apache.jena.query.QueryParseException
string - the string to parsemodel - the Model to operate on (for prefixes)org.apache.jena.query.QueryParseExceptionpublic static String getPathString(org.apache.jena.rdf.model.Resource path)
Copyright © 2017 TopQuadrant, Inc.. All rights reserved.