org.topbraid.spin.vocabulary
Class SP

java.lang.Object
  extended by org.topbraid.spin.vocabulary.SP

public class SP
extends java.lang.Object

Vocabulary of the SPIN SPARQL Syntax schema.

Author:
Holger Knublauch

Field Summary
static Resource AltPath
           
static Property arg1
           
static Property arg2
           
static Property arg3
           
static Property arg4
           
static Property arg5
           
static Property as
           
static Resource Asc
           
static Resource Ask
           
static java.lang.String BASE_URI
           
static Resource bound
           
static Resource Command
           
static Resource Construct
           
static Resource Count
           
static Resource Delete
           
static Property deletePattern
           
static Resource Desc
           
static Resource Describe
           
static Property distinct
           
static Property elements
           
static Resource eq
           
static Property expression
           
static Resource Filter
           
static Property from
           
static Property fromNamed
           
static Property graphIRI
           
static Property graphNameNode
           
static Property groupBy
           
static Resource Insert
           
static Property insertPattern
           
static Resource Let
           
static Property limit
           
static Resource Modify
           
static Property modMax
           
static Property modMin
           
static Resource ModPath
           
static Resource NamedGraph
           
static Resource not
           
static Resource NotExists
           
static java.lang.String NS
           
static Property object
           
static Property offset
           
static Resource Optional
           
static Property orderBy
           
static Property path
           
static Property path1
           
static Property path2
           
static Property predicate
           
static java.lang.String PREFIX
           
static Property query
           
static Resource Query
           
static Property reduced
           
static Resource regex
           
static Property resultNodes
           
static Property resultVariables
           
static Resource ReversePath
           
static Resource Select
           
static Resource SeqPath
           
static Resource Service
           
static Property serviceURI
           
static Resource sub
           
static Property subject
           
static Property subPath
           
static Resource SubQuery
           
static Resource Sum
           
static Property templates
           
static Property text
           
static Resource Triple
           
static Resource TriplePath
           
static Resource TriplePattern
           
static Resource TripleTemplate
           
static Resource unaryMinus
           
static Resource Union
           
static Resource Update
           
static java.lang.String VAR_NS
           
static java.lang.String VAR_PREFIX
           
static Property variable
           
static Resource Variable
           
static Property varName
           
static Property where
           
 
Constructor Summary
SP()
           
 
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
 

Field Detail

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

AltPath

public static final Resource AltPath

Asc

public static final Resource Asc

Ask

public static final Resource Ask

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

NotExists

public static final Resource NotExists

Filter

public static final Resource Filter

Insert

public static final Resource Insert

Let

public static final Resource Let

Modify

public static final Resource Modify

ModPath

public static final Resource ModPath

NamedGraph

public static final Resource NamedGraph

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
Constructor Detail

SP

public SP()
Method Detail

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)