Ontologies / sp
SPIN SPARQL Syntax
Original text (English), from: LOV catalogueAn RDF Schema to syntactically represent SPARQL queries (including SPARQL UPDATE) as RDF triples.
- Namespace IRI
- http://spinrdf.org/sp#
- Type
- Vocabulary
- Field
- Semantic web core
- Version
- 1.5.0
- Licence statement
- License not verified
- Standard or contact
- Not registered
- Definition file check
- File parsed · Nov 30, 2026 UTC
- Collected from
- Linked Open Vocabularies (LOV)
- Reuse counted by LOV
- 0 vocabularies, 2 datasets
At a glance
Derived from the parsed definition file, not written by an editor.
- Classes
- 56
- Properties
- 55
- Triples in file
- 523
- Connections
- 6
- Papers and standards
- 0
Counted as stated directly in the definition file, within its own namespace, without imports or inference. The file also declares 0 terms from other namespaces.
Central classes
The classes with the most subclass and property links.
Top of the hierarchy
Classes with subclasses but no parent inside this file.
What it lets you say
Properties read as domain, property, range.
- Triple pathpathPath
- QueryvaluesValues
- Sub queryqueryQuery
- BindvariableVariable
Class hierarchy
Open a class to follow its subclasses downward. The number is how many direct subclasses it has.
SP System class7
Aggregation7
- AVG
- COUNT
- GROUP_CONCAT
- MAX
- MIN
- SAMPLE
- SUM
Element7
Element group8
- Element list
- Exists
- Minus
- Named graph
- Not exists
- Optional
- Service
- Union
Bind1
- Let
- Filter
- Sub query
- Triple path
- Triple pattern
- Values
Path5
- Alt path
- Mod path
- Reverse link path
- Reverse path
- Seq path
Command2
Update8
Modify2
- Delete
- Insert
- Clear
- Create
- Delete data
- Delete where
- Drop
- Insert data
- Load
Query4
- Ask
- Construct
- Describe
- Select query
Order by condition2
- Asc
- Desc
Tuple2
Triple2
- Triple pattern
- Triple template
- Triple path
- Variable
Class graph
Select a class to read its original definition and the properties attached to it. Drag to move, scroll to zoom.
subclass of (child to parent)property (domain to range)
All 56 classes
| Term | Original definition |
|---|---|
| Query sp:Query | Abstract base class of the various types of supported queries. Common to all types of queries is that they can have a body ("WHERE clause"). |
| Update sp:Update | Abstract base class to group the various SPARQL UPDATE commands. |
| Path sp:Path | The base class of SPARQL property path expressions. Paths are used by sp:TriplePath triple paths. |
| Element group sp:ElementGroup | Abstract base class of group patterns. |
| SP System class sp:SystemClass | An "artificial" root class that groups all SP classes. This makes them look much less overwhelming in UI tools. Typical end users don't need to see those classes anyway. |
| Aggregation sp:Aggregation | Base class of aggregation types (not part of the SPARQL 1.0 standard but supported by ARQ and other engines). |
| Element sp:Element | An abstract base class for all pattern elements. |
| Modify sp:Modify | Represents a MODIFY (part of SPARQL UPDATE language). The graph IRIs are stored in sp:graphIRI. The template patterns are stored in sp:deletePattern and sp:insertPattern. The WHERE clause is represented using sp:where. |
| Select query sp:Select | A SELECT-type query that returns variable bindings as its result. |
| Tuple sp:Tuple | Abstract base class for things that have subject and object. |
| Triple sp:Triple | A base class for TriplePattern and TripleTemplate. This basically specifies that subject, predicate and object must be present. |
| Element list sp:ElementList | A list of Elements. This class is never instantiated directly as SPIN will use plain rdf:Lists to store element lists. |
| Variable sp:Variable | A variable mentioned in a Triple or expression. Variables are often blank nodes with the variable name stored in ts:name. Variables can also be supplied with a URI in which case the system will attempt to reuse the same variable instance across multiple query definitions. |
| Values sp:Values | A VALUES element. sp:varNames points to an rdf:List of strings for the variables, sp:values to an rdf:List of rdf:Lists with nodes for each variable, in the order defined by the variables list. |
| Order by condition sp:OrderByCondition | An abstract base class for ascending or descending order conditions. Instances of this class (typically bnodes) must have a value for expression to point to the actual values. |
| Load sp:Load | A LOAD Update operation. The document to load is specified using sp:document, and the (optional) target graph using sp:into. |
| Triple path sp:TriplePath | Similar to a TriplePattern, but with a path expression as its predicate. For example, this can be used to express transitive sub-class relationships (?subClass rdfs:subClassOf* ?superClass). |
| Bind sp:Bind | A BIND element. |
| Mod path sp:ModPath | A modified path such as rdfs:subClassOf*. |
| Command sp:Command | A shared superclass for sp:Query and sp:Update that can be used to specify that the range of property can be either one. |
| Triple pattern sp:TriplePattern | A triple pattern used in the body of a query. |
| GROUP_CONCAT sp:GroupConcat | Represents GROUP_CONCAT aggregations. |
| Sub query sp:SubQuery | A nested SELECT query inside of an element list. The query is stored in sp:query. |
| Construct sp:Construct | A CONSTRUCT-type query that can be used to construct new triples from template triples (head) that use variable bindings from the match patterns (body). |
| Named graph sp:NamedGraph | A named Graph element such as GRAPH <uri> {...}. |
| Reverse link path sp:ReverseLinkPath | Not registered |
| Service sp:Service | A SERVICE call that matches a nested sub-pattern against a SPARQL end point specified by a URI. |
| Describe sp:Describe | A DESCRIBE-type Query. |
| Asc sp:Asc | Marker to indicate ascending order. |
| SUM sp:Sum | Represents sum aggregations, e.g. SELECT SUM(?varName)... |
| Union sp:Union | A UNION group. |
| Delete data sp:DeleteData | An Update operation to delete specific triples. The graph triples are represented using sp:data, which points to an rdf:List of sp:Triples or sp:NamedGraphs. |
| Desc sp:Desc | Marker to indicate descending order. |
| Triple template sp:TripleTemplate | A prototypical triple used as template in the head of a Construct query. May contain variables. |
| MAX sp:Max | Represents MAX aggregations. |
| AVG sp:Avg | Represents AVG aggregations. |
| MIN sp:Min | Represents MIN aggregations. |
| Optional sp:Optional | An optional element in a query. |
| Alt path sp:AltPath | An alternative path with the union of sp:path1 and sp:path2. |
| COUNT sp:Count | Counts the number of times a variable is used. The variable is stored in the variable property. This might be left blank to indicate COUNT(*). |
| Reverse path sp:ReversePath | A path with reversed direction. |
| Ask sp:Ask | An ASK query that returns true if the condition in the body is met by at least one result set. |
| Create sp:Create | An Update operation that creates a new empty graph with a name specified by sp:graphIRI. May have sp:silent set to true. |
| Not exists sp:NotExists | A NOT EXISTS element group. |
| Drop sp:Drop | An Update operation that removes a specified graph from the Graph Store. Must specify the graph using sp:graphIRI, or sp:default, sp:named or sp:all. May have the SILENT flag, encoded using sp:silent. |
| Delete where sp:DeleteWhere | An Update operation where the triples matched by the WHERE clause (sp:where) will be the triples deleted. |
| Insert data sp:InsertData | An Update operation to insert specific triples. The graph triples are represented using sp:data, which points to an rdf:List of sp:Triples or sp:NamedGraphs. |
| Exists sp:Exists | An EXISTS element group. |
| Filter sp:Filter | A constraint element that evaluates a given expression to true or false. |
| Minus sp:Minus | A MINUS element group. |
| Clear sp:Clear | An Update operation that removes all triples from a specified graph. Must specify the graph using sp:graphIRI, or sp:default, sp:named or sp:all. May have the SILENT flag, encoded using sp:silent. |
| Seq path sp:SeqPath | A sequence of multiple paths. |
| SAMPLE sp:Sample | Represents SAMPLE aggregations |
| Delete sp:Delete | Deprecated - use sp:Modify instead. Represents a DELETE FROM (part of SPARQL UPDATE language). The graph IRIs are stored in sp:graphIRI. The template patterns to delete are stored in sp:deletePattern. The WHERE clause is represented using sp:where. |
| Insert sp:Insert | Deprecated - use sp:Modify instead. Represents a INSERT INTO (part of SPARQL UPDATE language). The graph IRIs are stored in sp:graphIRI. The template patterns to delete are stored in sp:insertPattern. The WHERE clause is represented using sp:where. |
| Let sp:Let | Deprecated: use sp:Bind instead. A variable assignment (LET (?<varName> := <expression>)). Not part of the SPARQL 1.0 standard, but (for example) ARQ. |
All 55 properties
| Term | Original definition |
|---|---|
| arg5 sp:arg5 | The fifth argument of a function call. Further arguments are not common in SPARQL, therefore no sp:arg6, etc are defined here. However, they can be created if needed. |
| arg sp:arg | Abstract superproperty for the enumerated arg1, arg2 etc. |
| path1 sp:path1 | The first child path of a property path. Used by sp:AltPath and sp:SeqPath. |
| SP system property sp:systemProperty | An abstract base proprerty that groups together the SP system properties. Users typically don't need to see them anyway. |
| arg1 sp:arg1 | The first argument of a function call. |
| default sp:default | Used in DROP and CLEAR. |
| values sp:values | The VALUES block at the end of a query. The object may just be an untyped blank node, i.e. the sp:Values type triple is optional. |
| object sp:object | An RDF Node or Variable describing the object of a triple. |
| graph name node sp:graphNameNode | The name (URI or Variable) of a NamedGraph. |
| varName sp:varName | The name of a Variable. |
| named sp:named | Used in DROP and CLEAR. |
| as sp:as | Points to a Variable used in an AS statement such as COUNT aggregates. |
| distinct sp:distinct | A marker property to indicate that a Select query is of type SELECT DISTINCT. |
| path2 sp:path2 | The second child path of a property path. Used by sp:AltPath and sp:SeqPath. |
| order by sp:orderBy | Links a query with an ORDER BY clause where the values are rdf:List containing OrderByConditions or expressions. While the domain of this property is sp:Query, only Describe and Select queries can have values of it. |
| variable sp:variable | The variable of a Bind element. |
| arg4 sp:arg4 | The forth argument of a function call. |
| silent sp:silent | Not registered |
| having sp:having | Points from a SELECT query to a list of HAVING expressions. |
| query sp:query | Links a SubQuery resource with the nested Query. |
| group by sp:groupBy | Points from a Query to the list of GROUP BY expressions. |
| graph IRI sp:graphIRI | Points to graph names (IRIs) in various sp:Update operations. |
| limit sp:limit | The LIMIT solution modifier of a Query. |
| using sp:using | Not registered |
| templates sp:templates | Points to a list of TripleTemplates that form the head of a Construct query. |
| result nodes sp:resultNodes | Contains the result nodes (URI resources or Variables) of a Describe query. |
| using named sp:usingNamed | Not registered |
| arg3 sp:arg3 | The third argument of a function call. |
| reduced sp:reduced | A property with true to indicate that a Select query has a REDUCED flag. |
| sub path sp:subPath | The child path of a property path expression. This is used by ReversePath and ModPath. |
| into sp:into | The (optional) target of a LOAD Update operation. |
| with sp:with | Not registered |
| service URI sp:serviceURI | Used by sp:Service to specify the URI of the SPARQL end point to invoke. Must point to a URI node. |
| where sp:where | The WHERE clause of a Query. |
| document sp:document | The URI of the document to load using a LOAD Update operation. |
| result variables sp:resultVariables | An rdf:List of variables that are returned by a Select query. |
| separator sp:separator | Stores the separator="..." value of a GROUP_CONCAT (sp:GroupConcat) aggregation. |
| text sp:text | Can be attached to sp:Queries to store a textual representation of the query. This can be useful for tools that do not have a complete SPIN Syntax parser available. |
| path sp:path | Points from a TriplePath to its path. |
| mod max sp:modMax | Not registered |
| bindings sp:bindings | The actual bindings of a sp:Values element. |
| elements sp:elements | Points to an ElementList, for example in an Optional element. |
| predicate sp:predicate | A resource or Variable describing the predicate of a triple. |
| node sp:node | Not registered |
| from named sp:fromNamed | Specifies a named RDF Dataset used by a Query (FROM NAMED syntax in SPARQL). Values of this property must be URI resources. |
| arg2 sp:arg2 | The second argument of a function call. |
| subject sp:subject | A resource or Variable describing the subject of a triple. |
| delete pattern sp:deletePattern | Points to a list of sp:TripleTemplates and sp:NamedGraphs in a modify operation. |
| expression sp:expression | Points to an expression, for example in a Filter or Assignment. |
| all sp:all | Used in DROP and CLEAR. |
| from sp:from | Specifies an RDF Dataset used by a Query (FROM syntax in SPARQL). Values of this property must be URI resources. |
| offset sp:offset | The OFFSET solution modifier of a Query. |
| var names sp:varNames | The names of the variables (xsd:strings) of the variables declared for a VALUES element. |
| mod min sp:modMin | Not registered |
| insert pattern sp:insertPattern | Points to a list of sp:TripleTemplates or sp:NamedGraphs in a modify command. |
Connections
Relations stated in a definition file or an official registry. Each row shows where the statement comes from.
What this ontology builds on 2
What builds on this ontology 4
Ontology with a stated relationPaper or standardRepositorySimilarity candidate (computed)
Show the evidence table (6 rows)
| Direction | Ontology | Relation | Evidence |
|---|---|---|---|
| This → other | The RDF Concepts Vocabulary | reuses terms (3 terms) | definition file type, List, Property |
| This → other | XML Schema | reuses terms (4 terms) | definition file boolean, string, long |
| Other → this | Air Traffic Data | reuses terms (1 term) | definition file arg |
| Other → this | SPIN Inferencing Vocabulary | imports | definition file owl:imports <http://spinrdf.org/sp> |
| Other → this | The Data Quality Constraints Library | reuses terms (38 terms) | definition file varName, Construct, object |
| Other → this | Social Semantic SPARQL Security For Access Control Ontology | reuses terms (12 terms) | definition file InsertData, Create, Load |
Similarity candidates
Candidates are ranked by shared words in descriptions and term labels. They are a starting point for your own check, not a statement of equivalence, compatibility or official relation.
Similar ontologies
Papers and standards
No paper or standard is linked yet. A missing paper is not a defect: an official specification can serve as evidence.
Files and repository
| File | Format | Location |
|---|---|---|
| LOV archived version | Turtle | https://lov.linkeddata.es/dataset/lov/vocabs/sp/versions/2013-09-13.n3 |
Check record
- Fetch fileDone
- Parse RDFDone
- Extract termsDone
A parsed file means it could be read. It does not vouch for logical consistency or modelling quality.
- Definition file check
- File parsed
- Checked at
- Nov 30, 2026 UTC
- Format
- Turtle
- Parser
- n3
- Size
- 25,163 B
- SHA-256
- b8e7540643741a29ba0c5c654a3e2ee3e3e8cf28aa9fbd5d0400cac3c5022497
- Note
- This is the latest version archived by LOV, not a file fetched from the publisher.