SPSH ontology
8 June 2026

SPSH ontology (turtle)⬇️

SPSH ontology examples (turtle)⬇️

ABS

https://w3id.org/spsh/def#ABS
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( ABS ( ?arg_1 ) AS ?result )
    }

ADD

https://w3id.org/spsh/def#ADD
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE { 
      BIND ( ( ?arg_1 + ?arg_2 ) AS ?result ) 
    }

AND

https://w3id.org/spsh/def#AND
Metadata
Execution
 
    SELECT ?result
    WHERE {
      BIND ( ( ?arg_1 && ?arg_2 ) AS ?result )
    }

BNODE

https://w3id.org/spsh/def#BNODE
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( IF ( BOUND ( ?arg_1 ), BNODE ( ?arg_1 ), BNODE ( ) ) AS ?result )
    }

BOUND

https://w3id.org/spsh/def#BOUND
Metadata
Parameter(s)
Execution
SELECT ?result
    WHERE {
      BIND ( BOUND ( ?arg_1 ) AS ?result )
    }

CEIL

https://w3id.org/spsh/def#CEIL
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( CEIL ( ?arg_1 ) AS ?result )
    }

COALESCE

https://w3id.org/spsh/def#COALESCE
Metadata
Parameter(s)
expression 1
true
1
spsh:arg_1
expression 2
true
2
spsh:arg_2
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( COALESCE ( ?arg_1, ?arg_2 ) AS ?result )
    }

CONCAT

https://w3id.org/spsh/def#CONCAT
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( CONCAT ( ?arg_1, ?arg_2 ) AS ?result )
    }

CONTAINS

https://w3id.org/spsh/def#CONTAINS
Metadata
Parameter(s)
Execution
SELECT ?result
    WHERE {
      BIND ( CONTAINS ( ?arg_1 , ?arg_2 ) AS ?result )
    }

DATATYPE

https://w3id.org/spsh/def#DATATYPE
Metadata
Parameter(s)
literal
true
1
spsh:arg_1
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( DATATYPE ( ?arg_1 ) AS ?result )
    }

DAY

https://w3id.org/spsh/def#DAY
Metadata
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( DAY ( ?arg_1 ) AS ?result )
    }

DIVIDE

https://w3id.org/spsh/def#DIVIDE
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {  
      BIND ( ( ?arg_1 / ?arg_2 ) AS ?result ) 
    }

ENCODE_FOR_URI

https://w3id.org/spsh/def#ENCODE_FOR_URI
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( ENCODE_FOR_URI ( ?arg_1 ) AS ?result )
    }

EQUALS

https://w3id.org/spsh/def#EQUALS
Metadata
Parameter(s)
term 1
true
1
spsh:arg_1
term 2
true
2
spsh:arg_2
Execution
SELECT ?result
    WHERE {
      BIND ( ( ?arg_1 = ?arg_2 ) AS ?result )
    }

EXCLAMATION_MARK

https://w3id.org/spsh/def#EXCLAMATION_MARK
Metadata
Execution
SELECT ?result
    WHERE {
      BIND ( ( ?arg_1 = FALSE ) AS ?result )
    }

EXISTS

https://w3id.org/spsh/def#EXISTS
Metadata
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( EXISTS { ?arg_1 ?arg_2 ?arg_3 } AS ?result )
    }

FLOOR

https://w3id.org/spsh/def#FLOOR
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( FLOOR ( ?arg_1 ) AS ?result )
    }

GREATER_THAN

https://w3id.org/spsh/def#GREATER_THAN
Metadata
Execution
 
    SELECT DISTINCT ?result
    WHERE {
      BIND ( ( ?arg_1 > ?arg_2 ) AS ?result )
    }

GREATER_THAN_OR_EQUALS

https://w3id.org/spsh/def#GREATER_THAN_OR_EQUALS
Metadata
Execution
 
    SELECT DISTINCT ?result
    WHERE {
      BIND ( ( ?arg_1 >= ?arg_2 ) AS ?result )
    }

HOURS

https://w3id.org/spsh/def#HOURS
Metadata
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( HOURS ( ?arg_1 ) AS ?result )
    }

IF

https://w3id.org/spsh/def#IF
Metadata
Parameter(s)
expression 1
true
1
spsh:arg_1
expression 2
true
2
spsh:arg_2
expression 3
true
3
spsh:arg_3
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( IF ( ?arg_1, ?arg_2, ?arg_3 ) AS ?result )
    }

IN

https://w3id.org/spsh/def#IN
Metadata
Parameter(s)
rdfTerm
true
1
spsh:arg_1
expression
true
2
spsh:arg_2
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( ( ?arg_1 IN ( ?arg_2 ) ) AS ?result )
    }

IRI

https://w3id.org/spsh/def#IRI
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( IRI ( ?arg_1 ) AS ?result )
    }

ISBLANK

https://w3id.org/spsh/def#ISBLANK
Metadata
Parameter(s)
Execution
 
    SELECT DISTINCT ?result
    WHERE {
      BIND ( ISBLANK ( ?arg_1 ) AS ?result )
    }

ISIRI

https://w3id.org/spsh/def#ISIRI
Metadata
Parameter(s)
Execution
 
    SELECT DISTINCT ?result
    WHERE {
      BIND ( ISIRI ( ?arg_1 ) AS ?result )
    }

ISLITERAL

https://w3id.org/spsh/def#ISLITERAL
Metadata
Parameter(s)
Execution
 
    SELECT DISTINCT ?result
    WHERE {
      BIND ( ISLITERAL ( ?arg_1 ) AS ?result )
    }

ISNUMERIC

https://w3id.org/spsh/def#ISNUMERIC
Metadata
Parameter(s)
Execution
 
    SELECT DISTINCT ?result
    WHERE {
      BIND ( ISNUMERIC ( ?arg_1 ) AS ?result )
    }

ISURI

https://w3id.org/spsh/def#ISURI
Metadata
Parameter(s)
Execution
 
    SELECT DISTINCT ?result
    WHERE {
      BIND ( ISURI ( ?arg_1 ) AS ?result )
    }

LANG

https://w3id.org/spsh/def#LANG
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( LANG ( ?arg_1 ) AS ?result )
    }

LANGMATCHES

https://w3id.org/spsh/def#LANGMATCHES
Metadata
Parameter(s)
language-tag
true
1
spsh:arg_1
language-range
true
2
spsh:arg_2
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( LANGMATCHES ( ?arg_1 , ?arg_2 ) AS ?result )
    }

LCASE

https://w3id.org/spsh/def#LCASE
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( LCASE ( ?arg_1 ) AS ?result )
    }

MD5

https://w3id.org/spsh/def#MD5
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( MD5 ( ?arg_1 ) AS ?result )
    }

LESS_THAN

https://w3id.org/spsh/def#LESS_THAN
Metadata
Execution
 
    SELECT DISTINCT ?result
    WHERE {
      BIND ( ( ?arg_1 < ?arg_2 ) AS ?result )
    }

LESS_THAN_OR_EQUALS

https://w3id.org/spsh/def#LESS_THAN_OR_EQUALS
Metadata
Execution
 
    SELECT DISTINCT ?result
    WHERE {
      BIND ( ( ?arg_1 <= ?arg_2 ) AS ?result )
    }

MINUTES

https://w3id.org/spsh/def#MINUTES
Metadata
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( MINUTES ( ?arg_1 ) AS ?result )
    }

MONTH

https://w3id.org/spsh/def#MONTH
Metadata
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( MONTH ( ?arg_1 ) AS ?result )
    }

MULTIPLY

https://w3id.org/spsh/def#MULTIPLY
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE { 
      BIND ( ( ?arg_1 * ?arg_2 ) AS ?result ) 
    }

NOT_EXISTS

https://w3id.org/spsh/def#NOT_EXISTS
Metadata
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( NOT EXISTS { ?arg_1 ?arg_2 ?arg_3 } AS ?result )
    }

NOT_EQUALS

https://w3id.org/spsh/def#NOT_EQUALS
Metadata
Parameter(s)
term 1
true
1
spsh:arg_1
term 2
true
2
spsh:arg_2
Execution
SELECT ?result
    WHERE {
      BIND ( ( ?arg_1 != ?arg_2 ) AS ?result )
    }

NOT_IN

https://w3id.org/spsh/def#NOT_IN
Metadata
Parameter(s)
rdfTerm
true
1
spsh:arg_1
expression
true
2
spsh:arg_2
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( ( ?arg_1 NOT IN ( ?arg_2, ?arg_3 ) ) AS ?result )
    }

NOW

https://w3id.org/spsh/def#NOW
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( NOW ( ) AS ?result )
    }

OR

https://w3id.org/spsh/def#OR
Metadata
Execution
 
    SELECT DISTINCT ?result
    WHERE {
      BIND ( ( ?arg_1 || ?arg_2 ) AS ?result )
    }

RAND

https://w3id.org/spsh/def#RAND
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( RAND ( ) AS ?result )
    }

REGEX

https://w3id.org/spsh/def#REGEX
Metadata
Parameter(s)
Execution
 
    SELECT DISTINCT ?result
    WHERE {
      BIND ( IF ( BOUND ( ?arg_3 ), REGEX ( ?arg_1 , ?arg_2, ?arg_3 ), REGEX ( ?arg_1 , ?arg_2 ) ) AS ?result )
    }

REPLACE

https://w3id.org/spsh/def#REPLACE
Metadata
Parameter(s)
arg
true
1
spsh:arg_1
pattern
true
2
spsh:arg_2
replacement
true
3
spsh:arg_3
flags
true
4
spsh:arg_4
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( IF ( BOUND ( ?arg_4 ), REPLACE ( ?arg_1 , ?arg_2, ?arg_3, ?arg_4 ), REPLACE ( ?arg_1 , ?arg_2, ?arg_3 ) ) AS ?result )
    }

ROUND

https://w3id.org/spsh/def#ROUND
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( ROUND ( ?arg_1 ) AS ?result )
    }

SAMETERM

https://w3id.org/spsh/def#SAMETERM
Metadata
Parameter(s)
term 1
true
1
spsh:arg_1
term 2
true
2
spsh:arg_2
Execution
 
    SELECT DISTINCT ?result
    WHERE {
      BIND ( SAMETERM ( ?arg_1 , ?arg_2 ) AS ?result )
    }

SECONDS

https://w3id.org/spsh/def#SECONDS
Metadata
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( SECONDS ( ?arg_1 ) AS ?result )
    }

SHA1

https://w3id.org/spsh/def#SHA1
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( SHA1 ( ?arg_1 ) AS ?result )
    }

SHA256

https://w3id.org/spsh/def#SHA256
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( SHA256 ( ?arg_1 ) AS ?result )
    }

SHA384

https://w3id.org/spsh/def#SHA384
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( SHA384 ( ?arg_1 ) AS ?result )
    }

SHA512

https://w3id.org/spsh/def#SHA512
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( SHA512 ( ?arg_1 ) AS ?result )
    }

STR

https://w3id.org/spsh/def#STR
Metadata
Parameter(s)
ltrl_or_rsrc
true
1
spsh:arg_1
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( STR ( ?arg_1 ) AS ?result )
    }

STRAFTER

https://w3id.org/spsh/def#STRAFTER
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( STRAFTER ( ?arg_1 , ?arg_2 ) AS ?result )
    }

STRBEFORE

https://w3id.org/spsh/def#STRBEFORE
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( STRBEFORE ( ?arg_1 , ?arg_2 ) AS ?result )
    }

STRDT

https://w3id.org/spsh/def#STRDT
Metadata
Parameter(s)
lexicalForm
true
1
spsh:arg_1
datatypeIRI
true
2
spsh:arg_2
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( STRDT ( ?arg_1, ?arg_2 ) AS ?result )
    }

STRENDS

https://w3id.org/spsh/def#STRENDS
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( STRENDS ( ?arg_1 , ?arg_2 ) AS ?result )
    }

STRLANG

https://w3id.org/spsh/def#STRLANG
Metadata
Parameter(s)
lexicalForm
true
1
spsh:arg_1
langTag
true
2
spsh:arg_2
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( STRLANG ( ?arg_1, ?arg_2 ) AS ?result )
    }

STRLEN

https://w3id.org/spsh/def#STRLEN
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( STRLEN ( ?arg_1 ) AS ?result )
    }

STRSTARTS

https://w3id.org/spsh/def#STRSTARTS
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( STRSTARTS ( ?arg_1 , ?arg_2 ) AS ?result )
    }

STRUUID

https://w3id.org/spsh/def#STRUUID
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( STRUUID ( ) AS ?result )
    }

SUBSTR

https://w3id.org/spsh/def#SUBSTR
Metadata
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( IF ( BOUND ( ?arg_3 ), SUBSTR ( ?arg_1 , ?arg_2, ?arg_3 ), SUBSTR ( ?arg_1 , ?arg_2 ) ) AS ?result )
    }

SUBTRACT

https://w3id.org/spsh/def#SUBTRACT
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE { 
      BIND ( ( ?arg_1 - ?arg_2 ) AS ?result ) 
    }

TIMEZONE

https://w3id.org/spsh/def#TIMEZONE
Metadata
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( TIMEZONE ( ?arg_1 ) AS ?result )
    }

TZ

https://w3id.org/spsh/def#TZ
Metadata
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( TZ ( ?arg_1 ) AS ?result )
    }

UCASE

https://w3id.org/spsh/def#UCASE
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( UCASE ( ?arg_1 ) AS ?result )
    }

UNDEF

https://w3id.org/spsh/def#UNDEF
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
    }

URI

https://w3id.org/spsh/def#URI
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( URI ( ?arg_1 ) AS ?result )
    }

UUID

https://w3id.org/spsh/def#UUID
Metadata
Parameter(s)
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( UUID ( ) AS ?result )
    }

YEAR

https://w3id.org/spsh/def#YEAR
Metadata
Execution
SELECT DISTINCT ?result
    WHERE {
      BIND ( YEAR ( ?arg_1 ) AS ?result )
    }