public class NodeFunctions extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
warningsForIRIs |
| Constructor and Description |
|---|
NodeFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static Node |
blankNodeToIri(Node node)
"Skolemize": BlankNode to IRI else return node unchanged.
|
static Node |
checkAndGetStringLiteral(String label,
NodeValue nv)
check and get a string (may be a simple literal, literal with language
tag or an XSD string).
|
static void |
checkTwoArgumentStringLiterals(String label,
NodeValue arg1,
NodeValue arg2)
Check for string operations with primary first arg and second arg
(e.g.
|
static Node |
datatype(Node node) |
static NodeValue |
datatype(NodeValue nv) |
static Duration |
duration(int seconds)
A duration, tided
|
static Node |
iri(Node n,
String baseIRI)
Node to Node, skolemizing, and converting strings to URIs.
|
static NodeValue |
iri(NodeValue nv,
String baseIRI)
NodeValue to NodeValue, skolemizing, and converting strings to URIs.
|
static boolean |
isBlank(Node node) |
static NodeValue |
isBlank(NodeValue nv) |
static boolean |
isIRI(Node node) |
static NodeValue |
isIRI(NodeValue nv) |
static boolean |
isLiteral(Node node) |
static NodeValue |
isLiteral(NodeValue nv) |
static boolean |
isURI(Node node) |
static NodeValue |
isURI(NodeValue nv) |
static String |
lang(Node node) |
static NodeValue |
lang(NodeValue nv) |
static NodeValue |
langMatches(NodeValue nv,
NodeValue nvPattern)
LANGMATCHES
|
static NodeValue |
langMatches(NodeValue nv,
String langPattern)
LANGMATCHES
|
static boolean |
langMatches(String langStr,
String langPattern)
The algortihm for the SPARQ function "LANGMATCHES".
|
static boolean |
rdfTermEquals(Node n1,
Node n2) |
static NodeValue |
rdfTermEquals(NodeValue nv1,
NodeValue nv2) |
static boolean |
sameTerm(Node n1,
Node n2) |
static NodeValue |
sameTerm(NodeValue nv1,
NodeValue nv2) |
static NodeValue |
sortKey(NodeValue nv,
String collation) |
static String |
str(Node node) |
static NodeValue |
str(NodeValue nv) |
static NodeValue |
strDatatype(NodeValue v1,
NodeValue v2) |
static NodeValue |
strLang(NodeValue v1,
NodeValue v2) |
static NodeValue |
struuid() |
static NodeValue |
uuid() |
public static Node checkAndGetStringLiteral(String label, NodeValue nv)
public static void checkTwoArgumentStringLiterals(String label, NodeValue arg1, NodeValue arg2)
public static NodeValue langMatches(NodeValue nv, NodeValue nvPattern)
nv - The language stringnvPattern - The pattern to match againstpublic static NodeValue langMatches(NodeValue nv, String langPattern)
nv - The language stringlangPattern - The pattern to match againstpublic static boolean langMatches(String langStr, String langPattern)
langStr - The language stringlangPattern - The pattern to match againstpublic static boolean isIRI(Node node)
public static boolean isURI(Node node)
public static boolean isBlank(Node node)
public static boolean isLiteral(Node node)
public static Node blankNodeToIri(Node node)
public static NodeValue iri(NodeValue nv, String baseIRI)
public static Node iri(Node n, String baseIRI)
public static NodeValue struuid()
public static NodeValue uuid()
public static Duration duration(int seconds)
Licenced under the Apache License, Version 2.0