SPSH ontology
19 April 2026
ABS
https://w3id.org/spsh/def#ABS
Metadata
rdf:type
sh:SPARQLFunction
rdfs:label
SPARQL function ABS
rdfs:comment
Returns the absolute value of arg. An error is raised if arg is not a numeric value. This function is the same as fn:numeric-abs for terms with a datatype from XDM.
rdfs:seeAlso
https://www.w3.org/TR/sparql11-query/#func-abs
Parameter(s)
sh:parameter
sh:path
https://w3id.org/spsh/def#arg_1
sh:optional
true
sh:order
1
Execution
sh:select
SELECT DISTINCT ?result WHERE { BIND ( ABS ( ?arg_1 ) AS ?result ) }