org.topbraid.spin.vocabulary
Class SP
java.lang.Object
org.topbraid.spin.vocabulary.SP
public class SP
- extends java.lang.Object
Vocabulary of the SPIN SPARQL Syntax schema.
- Author:
- Holger Knublauch
Method Summary |
static boolean |
exists(Model model)
Checks whether the SP ontology is used in a given Model. |
static Property |
getArgProperty(int index)
|
static Property |
getArgProperty(java.lang.String varName)
|
static java.lang.Integer |
getArgPropertyIndex(java.lang.String varName)
|
static Model |
getModel()
Gets a Model with the content of the SP namespace, from a file
that is bundled with this API. |
static java.lang.String |
getURI()
|
static boolean |
isQueryProperty(Property property)
|
static void |
toStringElementList(java.lang.StringBuffer buffer,
Resource resource)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE_URI
public static final java.lang.String BASE_URI
- See Also:
- Constant Field Values
NS
public static final java.lang.String NS
- See Also:
- Constant Field Values
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
VAR_NS
public static final java.lang.String VAR_NS
- See Also:
- Constant Field Values
VAR_PREFIX
public static final java.lang.String VAR_PREFIX
- See Also:
- Constant Field Values
Aggregation
public static final Resource Aggregation
AltPath
public static final Resource AltPath
Asc
public static final Resource Asc
Ask
public static final Resource Ask
Avg
public static final Resource Avg
Command
public static final Resource Command
Construct
public static final Resource Construct
Count
public static final Resource Count
Delete
public static final Resource Delete
Desc
public static final Resource Desc
Describe
public static final Resource Describe
Expression
public static final Resource Expression
Filter
public static final Resource Filter
Insert
public static final Resource Insert
Let
public static final Resource Let
Max
public static final Resource Max
Min
public static final Resource Min
Modify
public static final Resource Modify
ModPath
public static final Resource ModPath
NamedGraph
public static final Resource NamedGraph
NotExists
public static final Resource NotExists
Optional
public static final Resource Optional
Query
public static final Resource Query
ReversePath
public static final Resource ReversePath
Select
public static final Resource Select
Service
public static final Resource Service
SeqPath
public static final Resource SeqPath
SubQuery
public static final Resource SubQuery
Sum
public static final Resource Sum
Triple
public static final Resource Triple
TriplePath
public static final Resource TriplePath
TriplePattern
public static final Resource TriplePattern
TripleTemplate
public static final Resource TripleTemplate
Union
public static final Resource Union
Update
public static final Resource Update
Variable
public static final Resource Variable
arg1
public static final Property arg1
arg2
public static final Property arg2
arg3
public static final Property arg3
arg4
public static final Property arg4
arg5
public static final Property arg5
as
public static final Property as
deletePattern
public static final Property deletePattern
distinct
public static final Property distinct
elements
public static final Property elements
expression
public static final Property expression
from
public static final Property from
fromNamed
public static final Property fromNamed
graphIRI
public static final Property graphIRI
graphNameNode
public static final Property graphNameNode
groupBy
public static final Property groupBy
insertPattern
public static final Property insertPattern
limit
public static final Property limit
modMax
public static final Property modMax
modMin
public static final Property modMin
object
public static final Property object
offset
public static final Property offset
orderBy
public static final Property orderBy
path
public static final Property path
path1
public static final Property path1
path2
public static final Property path2
predicate
public static final Property predicate
query
public static final Property query
reduced
public static final Property reduced
resultNodes
public static final Property resultNodes
resultVariables
public static final Property resultVariables
serviceURI
public static final Property serviceURI
subject
public static final Property subject
subPath
public static final Property subPath
templates
public static final Property templates
text
public static final Property text
variable
public static final Property variable
varName
public static final Property varName
where
public static final Property where
bound
public static final Resource bound
eq
public static final Resource eq
not
public static final Resource not
regex
public static final Resource regex
sub
public static final Resource sub
unaryMinus
public static final Resource unaryMinus
SP
public SP()
getModel
public static Model getModel()
- Gets a Model with the content of the SP namespace, from a file
that is bundled with this API.
- Returns:
- the namespace Model
exists
public static boolean exists(Model model)
- Checks whether the SP ontology is used in a given Model.
This is true if the model defines the SP namespace prefix
and also has sp:Query defined with an rdf:type.
The goal of this call is to be very fast when SP is not
imported, i.e. it checks the namespace first and can then
omit the type query.
- Parameters:
model
- the Model to check
- Returns:
- true if SP exists in model
getArgProperty
public static Property getArgProperty(int index)
getArgProperty
public static Property getArgProperty(java.lang.String varName)
getArgPropertyIndex
public static java.lang.Integer getArgPropertyIndex(java.lang.String varName)
getURI
public static java.lang.String getURI()
isQueryProperty
public static boolean isQueryProperty(Property property)
toStringElementList
public static void toStringElementList(java.lang.StringBuffer buffer,
Resource resource)