public class ARQ2SPIN extends Object
| Constructor and Description |
|---|
ARQ2SPIN(org.apache.jena.rdf.model.Model model)
Constructs a new ARQ2SPIN engine for a given Model,
equivalent with
ARQ2SPIN(model, true). |
ARQ2SPIN(org.apache.jena.rdf.model.Model model,
boolean addPrefixes)
Constructs a new ARQ2SPIN engine for a given Model.
|
| Modifier and Type | Method and Description |
|---|---|
ElementList |
createElementList(org.apache.jena.sparql.syntax.Element pattern)
Creates a SPIN ElementList from a given ARQ Element pattern.
|
org.apache.jena.rdf.model.RDFNode |
createExpression(org.apache.jena.sparql.expr.Expr expr) |
Query |
createQuery(org.apache.jena.query.Query arq,
String uri)
Constructs a new SPIN Query from a given ARQ query, possibly
with a URI.
|
Update |
createUpdate(org.apache.jena.update.Update arq,
String uri) |
static String |
getTextOnly(org.apache.jena.rdf.model.Resource spinCommand) |
String |
getVarNamespace()
Gets the (optional) variable namespace.
|
static Query |
parseQuery(String str,
org.apache.jena.rdf.model.Model model)
Parses a given partial query string and converts it into a SPIN structure
inside a given Model.
|
static Update |
parseUpdate(String str,
org.apache.jena.rdf.model.Model model)
Parses a given partial UPDATE string and converts it into a SPIN structure
inside a given Model.
|
void |
setVarNamespace(String value)
Sets the variable namespace which is used to prevent the
creation of too many blank nodes.
|
public ARQ2SPIN(org.apache.jena.rdf.model.Model model)
ARQ2SPIN(model, true).model - the Model to operate onpublic ARQ2SPIN(org.apache.jena.rdf.model.Model model,
boolean addPrefixes)
model - the Model to operate onaddPrefixes - true to also let the system add missing
prefixes mentioned in SPARQL expressions
(e.g. the afn namespace if afn:now() is used)public ElementList createElementList(org.apache.jena.sparql.syntax.Element pattern)
pattern - the ARQ pattern to convert to SPINpublic org.apache.jena.rdf.model.RDFNode createExpression(org.apache.jena.sparql.expr.Expr expr)
public Query createQuery(org.apache.jena.query.Query arq, String uri)
arq - the ARQ queryuri - the URI of the new Query resource or null for a blank nodepublic static String getTextOnly(org.apache.jena.rdf.model.Resource spinCommand)
public String getVarNamespace()
public static Query parseQuery(String str, org.apache.jena.rdf.model.Model model)
str - the partial query stringmodel - the Model to operate onpublic static Update parseUpdate(String str, org.apache.jena.rdf.model.Model model)
str - the partial UPDATE stringmodel - the Model to operate onpublic void setVarNamespace(String value)
value - the new namespace (might be null)Copyright © 2017 TopQuadrant, Inc.. All rights reserved.