functions-smf
type: Ontology
version info: 1.2.3
imports: spl

regex
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#1
subclass of: StringFunctions
return type: string
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#2
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#3
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#4
comment: An input string is converted into a result string by applying a match and replacement expressions. For example, the input string "semantic web" with the match expression "([A-z]+) ([A-z]+)" and the replacement expression "The $1 life" returns the string "The semantic life". An optional input string is returned, if no match occurs. If this string is empty and no match occurs, then the result string is unbound.

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#1
type: Argument
predicate: arg4
optional: true
value type: string
comment: The optional string returned as result string if no match occurs. If this string is empty and no match occurs, then the result string is unbound.

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#2
type: Argument
value type: string
predicate: arg1
comment: the input string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#3
type: Argument
predicate: arg2
value type: string
comment: The match expression

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#4
type: Argument
predicate: arg3
comment: The replacement expression
value type: string

lowerTitleCase
type: Function
comment: Converts an input string into lower title case. For example, "semantic web" becomes "semantic Web". An optional matching expression can be given to only convert the matched characters.
subclass of: StringFunctions
return type: string
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#5
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#6

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#5
type: Argument
comment: the input string
predicate: arg1
value type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#6
type: Argument
value type: string
comment: The match expression
optional: true
predicate: arg2

countMatches
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#7
subclass of: MiscFunctions
return type: integer
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#8
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#9
comment: Counts all occurences of a triple pattern based on subject (?arg1), predicate (?arg2) and object (?arg3) input. Any of those can be unbound variables.

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#7
type: Argument
value type: Resource
predicate: arg1
comment: the subject in the match triple, or an unbound variable for a wildcard

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#8
type: Argument
comment: the object in the match triple, or an unbound variable for a wildcard
predicate: arg3

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#9
type: Argument
comment: the predicate in the match triple, or an unbound variable for a wildcard
predicate: arg2
value type: Property

if
type: Function
comment: Evaluates a condition and depending on the outcome either returns the true argument or the false argument. This is comparable to Java's.. ?.. :.. notation.
subclass of: MiscFunctions
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#10
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#11
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#12

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#10
type: Argument
comment: The condition that shall be evaluated. If true then return the ?arg2 argument, otherwise return ?arg3.
predicate: arg1
value type: boolean

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#11
type: Argument
comment: the result if the condition is true
predicate: arg2

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#12
type: Argument
comment: the result if the condition is false
predicate: arg3

lowerCamelCase
type: Function
subclass of: StringFunctions
return type: string
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#13
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#14
comment: Converts an input string into lower camel case. For example, "semantic web" becomes "semanticWeb". An optional matching expression can be given to only convert the matched characters.

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#13
type: Argument
comment: the input string
predicate: arg1
value type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#14
type: Argument
value type: string
comment: The match expression
optional: true
predicate: arg2

parseDate
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#15
subclass of: StringFunctions
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#16
comment: Converts a string in a semi-structured format into a xsd:date, xsd:dateTime or xsd:time literal. The input string must be in a given template format, e.g. "yyyy.MM.dd G 'at' HH:mm:ss z" for strings such as 2001.07.04 AD at 12:08:56 PDT.
return type: Literal

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#15
type: Argument
comment: The template of the input string. This must conform to the pattern language implemented by the Java SimpleDateFormat class (http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html).
predicate: arg2
value type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#16
type: Argument
comment: the input text
predicate: arg1
value type: string

maxCardinality
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#17
comment: Gets the maximum cardinality of a property at a class. The function checks for locally defined owl:maxCardinality restrictions on the class or its superclasses. If none is found, it will check if the property is functional and, if so, return 1. Otherwise it will return null.
subclass of: OntologyFunctions
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#18
return type: integer

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#17
type: Argument
comment: the class to get the cardinality at
predicate: arg1
value type: Class

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#18
type: Argument
comment: the property to get the cardinality of
predicate: arg2
value type: Property

trim
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#19
subclass of: StringFunctions
comment: Creates a new string value by trimming an input string. Leading and trailing whitespaces are deleted.
return type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#19
type: Argument
comment: the text to trim
predicate: arg1
value type: string

buildStringFromRDFList
type: Function
subclass of: StringFunctions
comment: Builds a string from the members of a given rdf:List (?arg1). The function iterates over all members of the list (which must be well-formed according to the RDF syntax rules). For each member, a string template (?arg2) is applied where the expression {?member} will be substituted with the current member. Optionally, a separator (?arg3) can be inserted between the list members in the result string, e.g. to insert a comma.
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#20
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#21
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#22
return type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#20
type: Argument
comment: the head of the rdf:List to convert to string
predicate: arg1
value type: List

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#21
type: Argument
comment: the template string
predicate: arg2
value type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#22
type: Argument
comment: the separator to insert between each string
predicate: arg3
value type: string
optional: true

deriveURI
type: Function
body: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#23
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#30
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#31
comment: Constructs a new URI resource by concatenating a string constant {?arg2} to the URI of a given resource {?arg1}. Example: smf:deriveURI(owl:Thing, "-Child") = owl:Thing-Child
return type: Resource
subclass of: StringFunctions

uri
type: Variable
var name: uri

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#30
type: Argument
value type: string
predicate: arg2
comment: the additional string that will be appended to the right of {?arg1}

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#31
type: Argument
value type: Resource
predicate: arg1
comment: the URI resource that constitutes the left part of the new URI

titleCase
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#32
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#33
subclass of: StringFunctions
return type: string
comment: Converts an input string to title case. For example, "germany" becomes "Germany". An optional matching expression can be given to only convert the matched characters.

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#32
type: Argument
value type: string
predicate: arg1
comment: The input string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#33
type: Argument
predicate: arg2
value type: string
optional: true
comment: The match expression

lastIndexOf
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#34
subclass of: StringFunctions
comment: Gets the last index of the first occurence of a certain substring in a given search string. Returns null if the substring is not found.
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#35
return type: integer

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#34
type: Argument
predicate: arg2
comment: the sub string to search for
value type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#35
type: Argument
predicate: arg1
comment: the string to search in
value type: string

convertSPINRDFToString
type: Function
subclass of: MiscFunctions
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#36
comment: Converts a SPARQL query encoded in SPIN RDF format to a SPARQL string in textual form. The SPIN query must be well-formed in the context graph at execution time, and the provided argument must be the root of the expression (e.g., an instance of sp:Select).
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#37
return type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#36
type: Argument
optional: true
value type: boolean
predicate: arg2
comment: true to embed HTML markup into the output

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#37
type: Argument
comment: the root of the SPIN RDF query
predicate: arg1
value type: Query

random
type: Function
comment: Creates a random xsd:double between 0 and 1.
subclass of: MathematicalFunctions
return type: double

countResults
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#38
subclass of: MiscFunctions
comment: Runs an nested SPARQL query and counts its results. Note that the nested query will reuse the variable bindings from its surrounding.
return type: integer

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#38
type: Argument
comment: the SPARQL select query string to execute
predicate: arg1
value type: string

definedIn
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#39
return type: string
subclass of: OntologyFunctions
comment: Returns the base URI of the ontology that the input resource is defined in.

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#39
type: Argument
predicate: arg1
value type: Resource
comment: The input resource

definedInFile
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#40
return type: string
subclass of: OntologyFunctions
comment: Returns the workspace file path of the ontology that the input resource is defined in, if it exists.

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#40
type: Argument
comment: The input resource
value type: Resource
predicate: arg1

trace
type: Function
comment: Same as smf:buildString, but with the side effect of printing the string into the Error Log of TopBraid Composer. This can be used as an efficient debugging aid. The result of the function is the evaluated template.
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#41
return type: string
subclass of: StringFunctions

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#41
type: Argument
value type: string
predicate: arg1
comment: the template string to print

upperCase
type: Function
comment: Converts an input string into upper case. For example, "semantic web" becomes "SEMANTIC WEB". An optional matching expression can be given to only convert the matched characters.
subclass of: StringFunctions
return type: string
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#42
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#43

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#42
type: Argument
value type: string
predicate: arg1
comment: The input string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#43
type: Argument
predicate: arg2
optional: true
comment: The match expression
value type: string

geo code
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#44
comment: Attempts to convert a textual address (?arg1) into a comma-separated pair of lat/long values. The implementation currently uses the Google API (http://code.google.com/apis/maps/documentation/geocoding/) to do the actual work.
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#45
return type: string
subclass of: StringFunctions

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#44
type: Argument
optional: true
value type: string
predicate: arg2
comment: An (optional) country code such as "au" to aid the search.

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#45
type: Argument
value type: string
predicate: arg1
comment: The address as a raw string, e.g. "1600 Amphitheatre Parkway, Mountain View, CA".

duration
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#46
subclass of: MiscFunctions
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#47
return type: string
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#48
comment: Returns the duration between two dates in terms of one of the given "types". "type" is a string constant, which indicates the type of duration. It can be: String value - Explanation ms - milliseconds s - seconds m - minutes h - hours d - days mon - months y - years c - centuries

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#46
type: Argument
predicate: arg1
value type: string
comment: The type of the duration: It can be one of: "ms", "s", "m", "h", "d", "mon", "y", "c".

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#47
type: Argument
predicate: arg3
comment: The end date

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#48
type: Argument
predicate: arg2
comment: The begin date

minCardinality
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#49
comment: Gets the minimum cardinality of a property at a class. The function checks for locally defined owl:minCardinality restrictions on the class or its superclasses. If none is found, it will return null.
subclass of: OntologyFunctions
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#50
return type: integer

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#49
type: Argument
comment: the property to get the cardinality of
predicate: arg2
value type: Property

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#50
type: Argument
comment: the class to get the minimum cardinality at
predicate: arg1
value type: Class

dbpedia
type: Function
subclass of: MiscFunctions
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#53
comment: Attempts to get a DBPedia page for a string.
return type: Resource

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#53
type: Argument
comment: the label to get a DBpedia resource for
predicate: arg1
value type: string

subString
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#54
comment: Extracts a substring from an input string. This is similar to afn:substr but more robust against null values.
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#55
subclass of: StringFunctions
return type: string
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#56

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#54
type: Argument
predicate: arg3
comment: the end index; if not bound, use the length of text - 1
value type: integer

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#55
type: Argument
predicate: arg2
comment: the start index (0 is the first character); if not bound, then the function will return null
value type: integer

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#56
type: Argument
predicate: arg1
comment: the input string
value type: string

buildURI
type: Function
comment: Constructs a new URI resource by inserting the existing variable bindings into a template. The template can mention variable names in curly braces, such as "my:Instance-{?index}" would create "my:Instance-42" is ?index has the value 42. As an alternative to variable names, the function can take additional arguments after the template, the variables of which can be accessed using {?1}, {?2} etc. For example: smf:buildURI("my:Instance-{?1}-{?2}", ?day, ?month) would insert day and month at places {?1} and {?2}.
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#57
subclass of: StringFunctions
return type: Resource

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#57
type: Argument
comment: The URI template such as "<http://my.com/Instance-{?index}>". If the template contains a full URI, then it must be wrapped by <...>, otherwise the system will treat it as a qname.
predicate: arg1
value type: string

camelCase
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#58
subclass of: StringFunctions
return type: string
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#59
comment: Converts an input string into camel case. For example, "semantic web" becomes "SemanticWeb". An optional matching expression can be given to only convert the matched characters.

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#58
type: Argument
predicate: arg2
optional: true
comment: The match expression
value type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#59
type: Argument
value type: string
predicate: arg1
comment: the input string

buildString
type: Function
subclass of: StringFunctions
comment: Constructs a new string by inserting the existing variable bindings into a template. The template can mention variable names in curly braces, such as "Hello {?index}" would create "Hello 42" is ?index has the value 42. As an alternative to variable names, the function can take additional arguments after the template, the variables of which can be accessed using {?1}, {?2} etc. For example: smf:buildString("Hello-{?1}-{?2}", ?day, ?month) would insert day and month at places {?1} and {?2}.
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#60
return type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#60
type: Argument
comment: the template string
predicate: arg1
value type: string

hasAllObjects
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#61
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#62
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#63
comment: Checks whether a given subject/predicate combination has all values enumerated from a given rdf:List. In other words, for each member ?object of the rdf:List, the triple (?arg1, ?arg2, ?object) must be in the model to return true. If the list is empty, true will also be returned.
return type: boolean
subclass of: BooleanFunctions

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#61
type: Argument
value type: List
predicate: arg3
comment: an rdf:List containing the match objects

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#62
type: Argument
value type: Property
predicate: arg2
comment: the match predicate

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#63
type: Argument
value type: Resource
predicate: arg1
comment: the match subject

isBound
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#64
subclass of: BooleanFunctions
comment: Checks whether the input expression evaluates to a bound variable. This is similar to the built-in bound function of SPARQL, but bound expects a variable as argument and therefore can not be used to evaluate arbitrary nested functions.
return type: boolean

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#64
type: Argument
comment: the argument or variable to evaluate
predicate: arg1
value type: Resource

htmlString
type: Function
subclass of: StringFunctions
comment: Converts an input string to an HTML string - i.e. special characters are converted.
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#65
return type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#65
type: Argument
comment: the input string
value type: string
predicate: arg1

currentTimeMillis
type: Function
subclass of: MiscFunctions
comment: Returns the current time in milliseconds. See System.currentTimeMillis() in Java.
return type: long

setLanguage
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#66
subclass of: StringFunctions
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#67
comment: Creates a new string literal with a given language from an existing value. For example, smf:setLanguage("House", "en") becomes "House"@en.
return type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#66
type: Argument
comment: the text to set the language of
predicate: arg1
value type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#67
type: Argument
comment: the language of the result literal; may be empty to delete any existing language
predicate: arg2
value type: string

lowerCase
type: Function
comment: Converts an input string into lower case. For example, "SEMANTIC Web" becomes "semantic web". An optional matching expression can be given to only convert the matched characters.
subclass of: StringFunctions
return type: string
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#68
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#69

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#68
type: Argument
value type: string
predicate: arg1
comment: the input string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#69
type: Argument
predicate: arg2
optional: true
comment: The match expression
value type: string

exec
type: Function
return type: string
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#70
comment: Executes a named system command with an optional number of arguments.
subclass of: MiscFunctions

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#70
type: Argument
value type: string
predicate: arg1
comment: The command to execute.

prefix
type: Function
subclass of: StringFunctions
body: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#71
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#89
comment: Gets the prefix of a given resource (?arg1). Returns nothing if the argument is a URI that cannot be abbreviated with a prefix.
return type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#74
var name: qname

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#79
type: starts-with
arg1: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#74
arg2: <

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#82
var name: sep

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#83
type: indexOf
arg1: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#74
arg2: :

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#86
var name: prefix

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#87
type: substr
arg1: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#74
arg2: 0
arg3: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#82

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#89
type: Argument
comment: The resource to get the prefix of.
predicate: arg1
value type: Resource

invoke
type: Function
comment: Calls another SPARQL function specified by a URI resource (?arg1), with additional arguments passed into from ?arg2 onwards. This can be used to dynamically call functions, the URI of which is now known statically. The result of the function call will be passed on as result of the invoke call.
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#90
subclass of: MiscFunctions

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#90
type: Argument
value type: Function
predicate: arg1
comment: The URI resource defining the function to call.

first bound
type: Function
comment: Evaluates the expressions starting with the first argument, and returns the first result that is bound. This can be used to implement complex if.. then.. else if.. else if.. else patterns. The implementation does lazy evaluation, i.e. the arguments will only be evaluated if needed. The function declares no arguments, but any number of arguments is allowed at run time.
subclass of: MiscFunctions

localRange
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#91
comment: Gets the local range of a property at a class. The function first checks for locally defined owl:allValuesFrom restrictions on the class or its superclasses. If none is found, it will try to use the global rdfs:range of the property. If this does not exist either, it will return null.
subclass of: OntologyFunctions
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#92
return type: Class

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#91
type: Argument
comment: the property to get the range of
predicate: arg2
value type: Property

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#92
type: Argument
comment: the class to get the local range at
predicate: arg1
value type: Class

convertRDFToText
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#93
subclass of: MiscFunctions
return type: string
comment: Converts the current RDF graph to text. Optionally the serialization of the RDF graph as text can be given. By default, the serialization is N3.

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#93
type: Argument
optional: true
predicate: arg1
value type: Resource
comment: The optional serialization format of the output. By default, it is N3. This value should be an instance of "sml:RDFSerialization" from sparqlmotionlib.owl ontology. For example: sml:RDFXML.

generate label
type: Function
subclass of: StringFunctions
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#94
return type: string
comment: Can be used to derive a "human-readable" label from a resource URI or local name. For example, with the input ex:firstName this will return "first name". The result can then be used in the rest of the SPARQL query, e.g. to create an rdfs:label.
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#95

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#94
type: Argument
predicate: arg1
comment: A URI resource or string literal that is used to generate a label. For URI resources, the local name will be used, the full string otherwise.

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#95
type: Argument
predicate: arg2
optional: true
value type: string
comment: An (optional) string template, that may include any of the following special commands: - {date} inserts the current date - {name} inserts the generated label - {name:lower-case} inserts the label as lower case - {name:upper-case} inserts the label as upper case - {name:title-case} insert the label as title case Any other characters will be inserted as they appear.

cast
type: Function
comment: Creates a new literal from an existing literal, but with a different datatype. This can, for example, be used to convert between floating point values and int values.
subclass of: MiscFunctions
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#96
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#97
return type: Literal

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#96
type: Argument
comment: the target datatype, e.g. xsd:integer
predicate: arg2
value type: Datatype

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#97
type: Argument
comment: the "old" literal that shall be converted
predicate: arg1
value type: Literal

generateUUID
type: Function
subclass of: MiscFunctions
comment: Generates a new unique ID as a string literal. This is often useful for creating "random" URIs and other identifiers.
return type: string

name
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#98
subclass of: StringFunctions
comment: Gets a human-readable string representation from an RDF node. If it's a literal, the function will return the literal's lexical text. If it's a resource the system will use the rdfs:label (if exists) or otherwise use the qname.
return type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#98
type: Argument
comment: the node (literal or resource) that shall be rendered into a string
predicate: arg1

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#99
type: Argument
comment: the URI resource to get the qname of
predicate: arg1
value type: Resource

indexOf
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#100
subclass of: StringFunctions
comment: Gets the index of the first occurence of a certain substring in a given search string. Returns null if the substring is not found.
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#101
return type: integer

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#100
type: Argument
predicate: arg2
comment: the sub string to search for
value type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#101
type: Argument
predicate: arg1
comment: the string to search in
value type: string

http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#102
type: Argument
value type: string
predicate: arg1
comment: the URI to convert

resource
type: Function
return type: Resource
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#102
comment: Converts a given URI string to an RDF resource with that URI.
subclass of: StringFunctions

qname
type: Function
constraint: http://lodlaundromat.org/.well-known/genid/bb1a700685f70440c1cd1196bee2d38f#99
comment: Gets the qname of a resource, using the defined namespace abbreviations. In contrast to the official specs, this function will drop the : character if it's the first character in the string. If the resource does not have a suitable prefix abbreviation, the function will return the URI wrapped by <...>.
subclass of: StringFunctions
return type: string