Vocabulary¶
Namespace: https://datatreehouse.github.io/fastrdf/vocab#
This page documents the IRIs that fastrdf mints: custom SPARQL functions, the predicates
of its query extensions, the classes and properties it writes to graphs, and its built-in
OTTR templates. It is the dereferenceable home of these terms: each term has an HTML
anchor that is its IRI fragment, so a URL like
https://datatreehouse.github.io/fastrdf/vocab#uuidv5 resolves directly to its documentation.
The vocabulary of the config graph, mcfg:, has a page of its own.
The examples assume the prefix:
PREFIX fastrdf: <https://datatreehouse.github.io/fastrdf/vocab#>
A machine-readable version of this vocabulary is available as Turtle:
vocab.ttl.
Functions¶
Custom SPARQL functions, usable in query, insert and update. Call them by their full IRI or with the prefix, in a BIND, FILTER or SELECT expression.
Identifiers¶
fastrdf:uuidv5¶
Generates a deterministic UUID (version 5) from a namespace and a name, as an IRI urn:uuid:.... The namespace is "dns", "oid", "url", "x500" or a UUID as a string. Unbound when an argument is unbound.
SELECT * WHERE {
VALUES ?name {"a" "b" UNDEF}
BIND(fastrdf:uuidv5("url", ?name) AS ?v5)
}
IRI |
|
Kind |
SPARQL function |
Arguments |
namespace, name (both read as strings) |
Returns |
An IRI |
fastrdf:struuidv5¶
As fastrdf:uuidv5, but returns the UUID itself as a string, without urn:uuid:.
SELECT * WHERE {
VALUES ?name {"a" "b" UNDEF}
BIND(fastrdf:struuidv5("url", ?name) AS ?sv5)
}
IRI |
|
Kind |
SPARQL function |
Arguments |
namespace, name (both read as strings) |
Returns |
|
Numbers and time¶
fastrdf:modulus¶
The remainder of the first argument divided by the second.
IRI |
|
Kind |
SPARQL function |
Arguments |
two numbers |
Returns |
|
fastrdf:DateTimeAsMicros¶
The microseconds from the Unix epoch to a timestamp.
IRI |
|
Kind |
SPARQL function |
Arguments |
|
Returns |
|
fastrdf:MicrosAsDateTime¶
The timestamp that is a number of microseconds after the Unix epoch.
IRI |
|
Kind |
SPARQL function |
Arguments |
integer |
Returns |
|
fastrdf:DateTimeAsSeconds¶
The seconds from the Unix epoch to a timestamp.
IRI |
|
Kind |
SPARQL function |
Arguments |
|
Returns |
|
fastrdf:SecondsAsDateTime¶
The timestamp that is a number of seconds after the Unix epoch.
IRI |
|
Kind |
SPARQL function |
Arguments |
integer |
Returns |
|
fastrdf:FloorDateTimeToSecondsInterval¶
Floors a timestamp to a multiple of a number of seconds from the Unix epoch. Grouping by it gives time buckets, which virtualized time series databases compute themselves.
IRI |
|
Kind |
SPARQL function |
Arguments |
|
Returns |
|
fastrdf:dateBin¶
Floors a timestamp to a multiple of a duration from an origin: origin + floor((t - origin) / stride) * stride. It is translated to the virtualized database (time_bucket, date_bin or bin_at); fastrdf does not evaluate it on its own data.
IRI |
|
Kind |
SPARQL function, in queries over virtualized data only |
Arguments |
the stride ( |
Returns |
|
fastrdf:time_bucket¶
Reserved. No function is implemented for this IRI; use fastrdf:dateBin or fastrdf:FloorDateTimeToSecondsInterval.
IRI |
|
Kind |
Reserved |
Vectors¶
These work with and without a vector index. The result is unbound when an argument is not a vector, or when the vectors differ in dimension.
fastrdf:cosineSimilarity¶
The cosine of the angle between two vectors. Unbound for a zero vector.
IRI |
|
Kind |
SPARQL function |
Arguments |
two vectors. A |
Returns |
|
fastrdf:dotProduct¶
The dot product of two vectors.
IRI |
|
Kind |
SPARQL function |
Arguments |
two vectors. A |
Returns |
|
fastrdf:euclideanDistance¶
The Euclidean distance between two vectors.
IRI |
|
Kind |
SPARQL function |
Arguments |
two vectors. A |
Returns |
|
fastrdf:vector¶
The datatype of literals that hold a vector of numbers, such as an embedding: "[0.1, -2.5, 3e-4]"^^fastrdf:vector. The components are stored as 32-bit floats. Polars columns of fixed-size arrays are mapped to it.
IRI |
|
Kind |
Datatype |
Units of measure¶
See Units of measure: QUDT and UCUM. Unbound for unknown units, values that are not numbers and units that can not be combined.
fastrdf:convertUnit¶
Converts a value from one QUDT unit to another.
IRI |
|
Kind |
SPARQL function |
Arguments |
value, from unit (IRI), to unit (IRI) |
Returns |
|
fastrdf:commensurableUnits¶
Whether two QUDT units can be converted into each other.
IRI |
|
Kind |
SPARQL function |
Arguments |
two QUDT units (IRIs) |
Returns |
|
fastrdf:addQuantities¶
The sum of two quantities, in the unit of the first.
IRI |
|
Kind |
SPARQL function |
Arguments |
value 1, QUDT unit 1 (IRI), value 2, QUDT unit 2 (IRI) |
Returns |
|
fastrdf:subtractQuantities¶
The difference of two quantities, in the unit of the first.
IRI |
|
Kind |
SPARQL function |
Arguments |
value 1, QUDT unit 1 (IRI), value 2, QUDT unit 2 (IRI) |
Returns |
|
fastrdf:compareQuantities¶
Compares two quantities that may have different units.
IRI |
|
Kind |
SPARQL function |
Arguments |
value 1, QUDT unit 1 (IRI), value 2, QUDT unit 2 (IRI) |
Returns |
|
fastrdf:multiplyQuantities¶
The product of two quantities in a given unit. Unbound when that unit does not have the dimension of the product.
IRI |
|
Kind |
SPARQL function |
Arguments |
value 1, QUDT unit 1 (IRI), value 2, QUDT unit 2 (IRI), result unit (IRI) |
Returns |
|
fastrdf:divideQuantities¶
The quotient of two quantities in a given unit. Unbound when that unit does not have the dimension of the quotient.
IRI |
|
Kind |
SPARQL function |
Arguments |
value 1, QUDT unit 1 (IRI), value 2, QUDT unit 2 (IRI), result unit (IRI) |
Returns |
|
fastrdf:dimensionVector¶
The QUDT dimension vector of a unit.
IRI |
|
Kind |
SPARQL function |
Arguments |
QUDT unit (IRI) |
Returns |
An IRI |
fastrdf:unitFromUcum¶
The QUDT unit of a UCUM expression.
IRI |
|
Kind |
SPARQL function |
Arguments |
UCUM expression ( |
Returns |
An IRI |
fastrdf:convertUcum¶
Converts a value from one UCUM unit to another.
IRI |
|
Kind |
SPARQL function |
Arguments |
value, from unit (UCUM string), to unit (UCUM string) |
Returns |
|
fastrdf:convertUcumToUnit¶
Converts a value in a UCUM unit to a QUDT unit.
IRI |
|
Kind |
SPARQL function |
Arguments |
value, UCUM unit (string), QUDT unit (IRI) |
Returns |
|
fastrdf:commensurableUcum¶
Whether two UCUM units can be converted into each other.
IRI |
|
Kind |
SPARQL function |
Arguments |
two UCUM expressions (strings) |
Returns |
|
fastrdf:multiplyUcum¶
The product of two quantities with UCUM units, in a given UCUM unit.
IRI |
|
Kind |
SPARQL function |
Arguments |
value 1, UCUM unit 1, value 2, UCUM unit 2, result UCUM unit |
Returns |
|
fastrdf:divideUcum¶
The quotient of two quantities with UCUM units, in a given UCUM unit.
IRI |
|
Kind |
SPARQL function |
Arguments |
value 1, UCUM unit 1, value 2, UCUM unit 2, result UCUM unit |
Returns |
|
fastrdf:validUcum¶
Whether a string is a valid UCUM expression.
IRI |
|
Kind |
SPARQL function |
Arguments |
|
Returns |
|
fastrdf:canonicalUcum¶
A UCUM expression as a factor and UCUM base units, e.g. "1000.m2.s-2.g" for "J".
IRI |
|
Kind |
SPARQL function |
Arguments |
UCUM expression ( |
Returns |
|
Aggregates¶
fastrdf:ListAggregation¶
Collects the values of a group into a list, without concatenating them. An ORDER BY inside the aggregate orders the list.
IRI |
|
Kind |
Aggregate function |
Arguments |
one expression |
Returns |
A list of the values |
fastrdf:nestAggregation¶
The former name of fastrdf:ListAggregation.
IRI |
|
Kind |
Aggregate function, deprecated |
Same as |
Query extensions¶
Magic predicates start a pattern that fastrdf computes instead of matching triples. The object of a magic predicate is a variable or blank node, and the options of the pattern are triples with that node as subject: parameter predicates take a constant, result predicates take a variable that the pattern binds. Several features share the names of options, such as fastrdf:predicate.
Paths: fastrdf:path¶
Paths whose number of steps is within bounds, with their lengths and nodes. See fastrdf:path.
SELECT ?s ?o ?len WHERE {
?s fastrdf:path [
fastrdf:predicate ex:p, ex:q ;
fastrdf:maxLength 3 ;
fastrdf:object ?o ;
fastrdf:length ?len ] .
}
fastrdf:path¶
Finds the paths from the subject whose number of steps is within bounds.
IRI |
|
Kind |
Magic predicate |
Subject |
The start of the paths, a variable or a constant |
Object |
A variable or blank node that holds the options, e.g. |
fastrdf:predicate¶
A predicate that is followed from subject to object. Used by fastrdf:path, fastrdf:shortestPath and the graph algorithms. May be repeated. fastrdf:path follows every predicate when neither this nor fastrdf:inversePredicate is given.
IRI |
|
Kind |
Parameter predicate |
Object |
An IRI |
fastrdf:inversePredicate¶
A predicate that is followed from object to subject. Used by fastrdf:path, fastrdf:shortestPath and the graph algorithms. May be repeated. Give a predicate as both fastrdf:predicate and fastrdf:inversePredicate for undirected edges.
IRI |
|
Kind |
Parameter predicate |
Object |
An IRI |
fastrdf:object¶
The other end. For fastrdf:path, the end of the path, a variable or a constant. For fastrdf:shortestPath, the targets: one variable or any number of constants, where an unbound variable makes every reached node a target. For fastrdf:bridge, the other end of the bridge, a variable, which is required.
IRI |
|
Kind |
Parameter or result predicate |
Object |
A variable or a constant |
fastrdf:minLength¶
The fewest steps of a path. Used by fastrdf:path and fastrdf:shortestPath.
IRI |
|
Kind |
Parameter predicate |
Object |
A non-negative integer, default 1 |
fastrdf:maxLength¶
The most steps of a path. Used by fastrdf:path and fastrdf:shortestPath.
IRI |
|
Kind |
Parameter predicate |
Object |
A non-negative integer, default unbounded |
fastrdf:length¶
The number of steps of the path. Used by fastrdf:path and fastrdf:shortestPath.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an |
fastrdf:pathMode¶
Which paths fastrdf:path allows: "walk" (nodes may repeat), "acyclic" (no node twice) or "simple" (no node twice, but the path may end where it started).
IRI |
|
Kind |
Parameter predicate |
Object |
A string, default |
fastrdf:shortest¶
With true, fastrdf:path gives only the shortest length for each pair of nodes, and with path outputs all the shortest paths.
IRI |
|
Kind |
Parameter predicate |
Object |
A boolean, default false |
fastrdf:pathIndex¶
The number of the path, from 0. Used by fastrdf:path and fastrdf:shortestPath.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an |
fastrdf:nodeIndex¶
The position of a node in the path, from 0. Gives one row per node of the path. Used by fastrdf:path and fastrdf:shortestPath.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an |
fastrdf:pathNode¶
The node at a position in the path. Gives one row per node of the path. Used by fastrdf:path and fastrdf:shortestPath.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to the node |
Shortest paths: fastrdf:shortestPath¶
The shortest paths, or with fastrdf:weight the cheapest, from sources to targets. It also takes fastrdf:predicate, fastrdf:inversePredicate, fastrdf:object, fastrdf:minLength, fastrdf:maxLength, fastrdf:length, fastrdf:pathIndex, fastrdf:nodeIndex and fastrdf:pathNode, described above. See fastrdf:shortestPath.
SELECT ?t ?len ?nodes WHERE {
ex:source fastrdf:shortestPath ?p .
?p fastrdf:object ?t ;
fastrdf:predicate ex:connectedTo ;
fastrdf:length ?len ;
fastrdf:pathNodes ?nodes .
}
fastrdf:shortestPath¶
Finds the shortest paths from the subject to the targets. One per group { }.
IRI |
|
Kind |
Magic predicate |
Subject |
The source, a constant or a variable that the group binds |
Object |
A variable or blank node that holds the options, e.g. |
fastrdf:anyPredicate¶
Follows every predicate whose objects are IRIs or blank nodes, except rdf:type: "forward", "backward" or "both". Used by fastrdf:shortestPath and the graph algorithms.
IRI |
|
Kind |
Parameter predicate |
Object |
A string |
fastrdf:excludePredicate¶
A predicate that fastrdf:anyPredicate does not follow. May be repeated.
IRI |
|
Kind |
Parameter predicate |
Object |
An IRI |
fastrdf:avoid¶
Nodes to leave out. For fastrdf:shortestPath, paths may start or end at them but not pass through them. For the graph algorithms, the nodes and their edges are removed for the query, as a what-if.
IRI |
|
Kind |
Parameter predicate |
Object |
A variable that the group binds, or any number of constants |
fastrdf:limit¶
The number of nearest targets to return for each source.
IRI |
|
Kind |
Parameter predicate |
Object |
A non-negative integer, default no limit |
fastrdf:weight¶
A predicate with a number on nodes, the cost of entering the node. With it, the cheapest paths are found instead of those with the fewest edges.
IRI |
|
Kind |
Parameter predicate |
Object |
An IRI |
fastrdf:defaultWeight¶
The cost of nodes that lack the predicate of fastrdf:weight.
IRI |
|
Kind |
Parameter predicate |
Object |
A number, default 0 |
fastrdf:maxCost¶
The highest total cost of a path.
IRI |
|
Kind |
Parameter predicate |
Object |
A number |
fastrdf:kShortest¶
The number of shortest paths without repeated nodes to return for each source and target. Can not be combined with fastrdf:allShortest.
IRI |
|
Kind |
Parameter predicate |
Object |
A non-negative integer, default 1 |
fastrdf:allShortest¶
With true, all shortest paths for each source and target are returned.
IRI |
|
Kind |
Parameter predicate |
Object |
A boolean, default false |
fastrdf:maxPaths¶
The most paths returned with fastrdf:allShortest.
IRI |
|
Kind |
Parameter predicate |
Object |
A non-negative integer, default 1000 |
fastrdf:cost¶
The total cost of the path.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an |
fastrdf:pathNodes¶
The nodes of the path as a JSON array of strings: IRIs as they are, blank nodes as _:label.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an |
fastrdf:stepPredicate¶
The predicate of the edge that led to the node. Gives one row per node of the path, and is unbound for the first.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an IRI |
fastrdf:stepInverse¶
Whether the edge that led to the node was followed backwards. Gives one row per node of the path, and is unbound for the first.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an |
Graph algorithms: fastrdf:component, fastrdf:bridge, fastrdf:articulationPoint¶
Connected components, bridges and articulation points. The edges are given by fastrdf:predicate, fastrdf:inversePredicate, fastrdf:anyPredicate and fastrdf:excludePredicate, or by fastrdf:edgeSource and fastrdf:edgeTarget, and fastrdf:avoid removes nodes. One magic pattern per group { }. See Graph algorithms.
SELECT ?node ?island ?size WHERE {
?node fastrdf:component ?c .
?c fastrdf:predicate ex:connectedTo ;
fastrdf:componentId ?island ;
fastrdf:componentSize ?size .
}
fastrdf:component¶
The connected component of each node, where edges are followed in both directions.
IRI |
|
Kind |
Magic predicate |
Subject |
The node, a variable or a constant |
Object |
A variable or blank node that holds the options, e.g. |
fastrdf:bridge¶
One row per bridge: an edge whose removal splits its component. Requires fastrdf:object.
IRI |
|
Kind |
Magic predicate |
Subject |
One end of the bridge, a variable |
Object |
A variable or blank node that holds the options, e.g. |
fastrdf:articulationPoint¶
One row per node whose removal splits its component.
IRI |
|
Kind |
Magic predicate |
Subject |
The node, a variable or a constant |
Object |
A variable or blank node that holds the options, e.g. |
fastrdf:componentId¶
The number of the component: 1 for the largest, then by decreasing size.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an |
fastrdf:componentSize¶
The number of nodes of the component, or with fastrdf:countNodes the number of counted nodes.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an |
fastrdf:strong¶
With true, fastrdf:component gives the strongly connected components of the directed edges.
IRI |
|
Kind |
Parameter predicate |
Object |
A boolean, default false |
fastrdf:cutOff¶
For a bridge, the number of nodes on its smaller side. For an articulation point, the number of nodes that are no longer connected to the largest remaining part.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an |
fastrdf:edgePredicate¶
The predicate of the edge of a bridge.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an IRI |
fastrdf:edgeSource¶
With fastrdf:edgeTarget, gives the edges by a query: every solution of the patterns of the group that bind the two variables is an edge.
IRI |
|
Kind |
Parameter predicate |
Object |
A variable that the group binds |
fastrdf:edgeTarget¶
The other end of the edges given with fastrdf:edgeSource.
IRI |
|
Kind |
Parameter predicate |
Object |
A variable that the group binds |
fastrdf:countNodes¶
The nodes that count in fastrdf:componentSize and fastrdf:cutOff.
IRI |
|
Kind |
Parameter predicate |
Object |
A variable that the group binds, or any number of constants |
Full text search: fastrdf:fts¶
Searches the full text index, which IndexingOptions(fts=True) builds. See Full-text search.
SELECT ?s ?text ?score WHERE {
?s fastrdf:fts [
fastrdf:ftsQuery "pump station" ;
fastrdf:ftsObject ?text ;
fastrdf:ftsScore ?score ] .
}
fastrdf:fts¶
Finds the subjects with values that match a search text.
IRI |
|
Kind |
Magic predicate |
Subject |
The matching subject, a variable or an IRI |
Object |
A variable or blank node that holds the options, e.g. |
fastrdf:ftsQuery¶
The search text, required. Every word must match, exactly, as a prefix or with a typo, without regard to case and accents.
IRI |
|
Kind |
Parameter predicate |
Object |
A string |
fastrdf:ftsLimit¶
The most hits to return.
IRI |
|
Kind |
Parameter predicate |
Object |
An integer, default 10 |
fastrdf:ftsObject¶
The matched value: the literal, or the IRI for hits on IRIs and local names.
IRI |
|
Kind |
Result predicate |
Object |
A variable |
fastrdf:ftsPredicate¶
The predicate of the hit. A variable is bound to it; an IRI restricts the hits to that predicate, and may be repeated.
IRI |
|
Kind |
Parameter or result predicate |
Object |
A variable or an IRI |
fastrdf:ftsScore¶
The relevance of the hit, 1.0 when the whole value matches.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an |
fastrdf:ftsUniqueSubject¶
With true, each subject is returned once.
IRI |
|
Kind |
Parameter predicate |
Object |
A boolean, default false |
fastrdf:ftsPrefix¶
Whether the words of the search text may match as prefixes.
IRI |
|
Kind |
Parameter predicate |
Object |
A boolean, default true |
fastrdf:ftsFuzzy¶
Whether the words of the search text may match with typos.
IRI |
|
Kind |
Parameter predicate |
Object |
A boolean, default true |
fastrdf:ftsLocalName¶
What fastrdf:ftsPredicate gives for a hit on the local name of the IRI of a subject, which fts_local_names=True indexes. fastrdf:ftsObject is then the IRI of the subject. No triples have this predicate.
IRI |
|
Kind |
Predicate of hits |
Vector search: fastrdf:vectorSearch¶
Finds the triples whose fastrdf:vector objects are nearest to a query vector, with the index that IndexingOptions(vectors=True) builds.
SELECT ?s ?score WHERE {
?s fastrdf:vectorSearch [
fastrdf:vectorQuery "[0.1, 0.2, 0.3]"^^fastrdf:vector ;
fastrdf:vectorLimit 5 ;
fastrdf:vectorScore ?score ] .
}
fastrdf:vectorSearch¶
Finds the subjects with the vectors nearest to a query vector.
IRI |
|
Kind |
Magic predicate |
Subject |
The subject of the vector, a variable or an IRI |
Object |
A variable or blank node that holds the options, e.g. |
fastrdf:vectorQuery¶
The query vector, required. With an IRI, the indexed vector of that subject is the query.
IRI |
|
Kind |
Parameter predicate |
Object |
A |
fastrdf:vectorLimit¶
The number of nearest vectors to return.
IRI |
|
Kind |
Parameter predicate |
Object |
A positive integer, default 10 |
fastrdf:vectorMetric¶
The measure of nearness: "cosine", "dot" or "euclidean".
IRI |
|
Kind |
Parameter predicate |
Object |
A string, default |
fastrdf:vectorExact¶
With true, all vectors are compared instead of using the approximate index.
IRI |
|
Kind |
Parameter predicate |
Object |
A boolean, default false |
fastrdf:vectorCandidates¶
The size of the candidate list of the approximate search. Higher is more accurate and slower.
IRI |
|
Kind |
Parameter predicate |
Object |
A positive integer, default 64 |
fastrdf:vectorPredicate¶
The predicate of the vector. A variable is bound to it; an IRI restricts the search to that predicate.
IRI |
|
Kind |
Parameter or result predicate |
Object |
A variable or an IRI |
fastrdf:vectorObject¶
The matched vector.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to a |
fastrdf:vectorScore¶
The cosine similarity or dot product, where higher is nearer, or the Euclidean distance, where lower is nearer.
IRI |
|
Kind |
Result predicate |
Object |
A variable, bound to an |
Graphs¶
fastrdf:DefaultGraph¶
The name of the default graph, where a graph has to be named: in lists of graphs, as target_graph, and as the key of the changes that an update returns. It is fastrdf.DEFAULT_GRAPH in Python. See Several graphs in one file.
IRI |
|
Kind |
Named graph |
fastrdf:TransientGraph¶
The graph of triples that take part in queries, validation and reasoning but are not written to files. Inferred triples go here by default. It is fastrdf.TRANSIENT_GRAPH in Python. See TRANSIENT_GRAPH.
IRI |
|
Kind |
Named graph |
Time series¶
The vocabulary of virtualized time series, formerly in the chrontext namespace https://github.com/DataTreehouse/chrontext#. IRIs in that namespace are still read as the term with the same name here. See VirtualizedDatabase and add_virtualization.
SELECT ?t ?v WHERE {
?sensor fastrdf:hasTimeseries ?ts .
?ts fastrdf:hasDataPoint ?dp .
?dp fastrdf:hasTimestamp ?t ;
fastrdf:hasValue ?v .
FILTER(?t >= "2024-06-01T00:00:00Z"^^xsd:dateTime)
}
fastrdf:hasResource¶
The name of the virtualized resource that holds the data of a node: it selects the template and the database that answer queries for the node.
IRI |
|
Kind |
Datatype property |
Subject |
A time series, or another virtualized node |
Object |
|
fastrdf:hasExternalId¶
The identifier of a time series in the external database, e.g. a tag name or a PI WebId.
IRI |
|
Kind |
Datatype property |
Subject |
A time series, or another virtualized node |
Object |
|
fastrdf:hasTimeseries¶
Links a sensor, attribute, variable or tag to its time series. Written by map_osipi, map_insights_hub and fastrdf.ip21.
IRI |
|
Kind |
Object property |
Subject |
A sensor, attribute, variable or tag |
Object |
A time series |
fastrdf:hasDataPoint¶
Links a time series to its data points. Data points are not stored: a pattern with this predicate is answered by the external database.
IRI |
|
Kind |
Object property, virtualized |
Subject |
A time series |
Object |
A data point, a variable |
fastrdf:hasTimestamp¶
The time of a data point.
IRI |
|
Kind |
Datatype property, virtualized |
Subject |
A data point |
Object |
|
fastrdf:hasValue¶
The value of a data point.
IRI |
|
Kind |
Datatype property, virtualized |
Subject |
A data point |
Object |
A number, or the type of the series |
SHACL validation reports¶
What validate writes to the report graph besides the SHACL vocabulary. See SHACL: validate.
fastrdf:ShaclReportTemplate¶
The OTTR template that writes a SHACL validation report: the sh:ValidationReport with sh:conforms and its sh:results.
IRI |
|
Kind |
OTTR template |
fastrdf:ShaclResultTemplate¶
The OTTR template that writes one SHACL validation result, a sh:ValidationResult.
IRI |
|
Kind |
OTTR template |
fastrdf:ShaclCountsTemplate¶
The OTTR template that writes the number of targets of each shape of a report.
IRI |
|
Kind |
OTTR template |
fastrdf:resultConforms¶
Whether a result conforms. Written with include_conforms=True, where results that conform are in the report too.
IRI |
|
Kind |
Datatype property |
Subject |
A |
Object |
|
fastrdf:details¶
Links a result to the nested results that explain it. Written with include_details=True.
IRI |
|
Kind |
Object property |
Subject |
A |
Object |
A |
fastrdf:targetShapeCount¶
Links a report to the target count of one shape.
IRI |
|
Kind |
Object property |
Subject |
A |
Object |
A target count |
fastrdf:targetShape¶
The shape of a target count.
IRI |
|
Kind |
Object property |
Subject |
A target count |
Object |
A shape |
fastrdf:targetCount¶
The number of targets of the shape.
IRI |
|
Kind |
Datatype property |
Subject |
A target count |
Object |
|
Templates as RDF¶
What Model.templates_to_graph writes: the OTTR templates of the model as triples, so that they can be queried. See Inspecting templates.
fastrdf:Template¶
An OTTR template. The subject is the IRI of the template.
IRI |
|
Kind |
Class |
fastrdf:Parameter¶
A parameter of a template, a blank node.
IRI |
|
Kind |
Class |
fastrdf:Instance¶
An instance in the body of a template, a blank node.
IRI |
|
Kind |
Class |
fastrdf:Argument¶
An argument of an instance, a blank node.
IRI |
|
Kind |
Class |
fastrdf:hasParameter¶
A parameter of the template.
IRI |
|
Kind |
Object property |
Subject |
A Template |
Object |
A Parameter |
fastrdf:hasInstance¶
An instance in the body of the template.
IRI |
|
Kind |
Object property |
Subject |
A Template |
Object |
An Instance |
fastrdf:usesPredicate¶
A constant predicate of a triple in the body of the template.
IRI |
|
Kind |
Object property |
Subject |
A Template |
Object |
An IRI |
fastrdf:referencesIri¶
An IRI that the template mentions, other than its own.
IRI |
|
Kind |
Object property |
Subject |
A Template |
Object |
An IRI |
fastrdf:index¶
The position among its siblings, from 0.
IRI |
|
Kind |
Datatype property |
Subject |
A Parameter, Instance or Argument |
Object |
|
fastrdf:variableName¶
The name of the variable, without ?.
IRI |
|
Kind |
Datatype property |
Subject |
A Parameter, or an Argument that is a variable |
Object |
|
fastrdf:optional¶
Whether the parameter is optional.
IRI |
|
Kind |
Datatype property |
Subject |
A Parameter |
Object |
|
fastrdf:nonBlank¶
Whether the parameter does not accept blank nodes.
IRI |
|
Kind |
Datatype property |
Subject |
A Parameter |
Object |
|
fastrdf:type¶
The innermost type of a typed parameter, e.g. xsd:string or ottr:IRI.
IRI |
|
Kind |
Object property |
Subject |
A Parameter |
Object |
An IRI |
fastrdf:cardinality¶
The outermost type of a typed parameter: "single", "list" or "nelist".
IRI |
|
Kind |
Datatype property |
Subject |
A Parameter |
Object |
|
fastrdf:lub¶
Whether the type of the parameter is a least upper bound.
IRI |
|
Kind |
Datatype property |
Subject |
A Parameter |
Object |
|
fastrdf:defaultValue¶
The default value of the parameter, when it is a constant that is not a list.
IRI |
|
Kind |
Property |
Subject |
A Parameter |
Object |
An IRI, blank node or literal |
fastrdf:callsTemplate¶
The template that the instance calls, which may be ottr:Triple.
IRI |
|
Kind |
Object property |
Subject |
An Instance |
Object |
A template IRI |
fastrdf:listExpander¶
The list expander of the instance, e.g. "cross".
IRI |
|
Kind |
Datatype property |
Subject |
An Instance |
Object |
|
fastrdf:hasArgument¶
An argument of the instance.
IRI |
|
Kind |
Object property |
Subject |
An Instance |
Object |
An Argument |
fastrdf:listExpand¶
Whether the argument is marked for list expansion (++).
IRI |
|
Kind |
Datatype property |
Subject |
An Argument |
Object |
|
fastrdf:constantValue¶
The value of an argument that is a constant.
IRI |
|
Kind |
Property |
Subject |
An Argument |
Object |
An IRI, blank node or literal |
fastrdf:isList¶
True for an argument that is a list.
IRI |
|
Kind |
Datatype property |
Subject |
An Argument |
Object |
|
fastrdf:functionCall¶
The text of an argument that is a function call.
IRI |
|
Kind |
Datatype property |
Subject |
An Argument |
Object |
|
OPC UA¶
fastrdf:shapeCategory¶
The category of a SHACL shape. m.opcua.add_typing_shapes gives its shapes the category uamapper:OPCUATypingValidation. See OPC UA NodeSets.
IRI |
|
Kind |
Object property |
Subject |
A SHACL shape |
Object |
A category, an IRI |
CIM¶
Relations that m.cim.add_serves derives between conducting equipment: ?a serves ?b when ?a feeds ?b directly through a node they share. Normally is by the normal state of the switches, actually by their actual state. The ending compares the voltage at which ?a is fed with the voltage of the node between them.
fastrdf:normallyServesSameVoltage¶
Feeds directly, in the normal state, through a node whose voltage is the same as that at which the subject is fed, or unknown.
IRI |
|
Kind |
Object property |
Subject |
Conducting equipment |
Object |
Conducting equipment |
fastrdf:normallyServesDecreasedVoltage¶
Feeds directly, in the normal state, through a node whose voltage is lower than that at which the subject is fed.
IRI |
|
Kind |
Object property |
Subject |
Conducting equipment |
Object |
Conducting equipment |
fastrdf:normallyServesIncreasedVoltage¶
Feeds directly, in the normal state, through a node whose voltage is higher than that at which the subject is fed.
IRI |
|
Kind |
Object property |
Subject |
Conducting equipment |
Object |
Conducting equipment |
fastrdf:actuallyServesSameVoltage¶
Feeds directly, in the actual state, through a node whose voltage is the same as that at which the subject is fed, or unknown.
IRI |
|
Kind |
Object property |
Subject |
Conducting equipment |
Object |
Conducting equipment |
fastrdf:actuallyServesDecreasedVoltage¶
Feeds directly, in the actual state, through a node whose voltage is lower than that at which the subject is fed.
IRI |
|
Kind |
Object property |
Subject |
Conducting equipment |
Object |
Conducting equipment |
fastrdf:actuallyServesIncreasedVoltage¶
Feeds directly, in the actual state, through a node whose voltage is higher than that at which the subject is fed.
IRI |
|
Kind |
Object property |
Subject |
Conducting equipment |
Object |
Conducting equipment |
Internal terms¶
IRIs that fastrdf writes itself, in the algebra of a parsed query and in rewritten queries. They are listed so that they resolve when they show up, e.g. in a printed query plan or an error. They are not written in queries.
Window functions¶
The representation of ... OVER (PARTITION BY ... ORDER BY ... ROWS BETWEEN ...).
fastrdf:windowRowNumber¶
How the parser represents ROW_NUMBER() OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
None, then |
fastrdf:windowRank¶
How the parser represents RANK() OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
None, then |
fastrdf:windowDenseRank¶
How the parser represents DENSE_RANK() OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
None, then |
fastrdf:windowCountStar¶
How the parser represents COUNT(*) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
None, then |
fastrdf:windowCount¶
How the parser represents COUNT(?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression, then |
fastrdf:windowCountDistinct¶
How the parser represents COUNT(DISTINCT ?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression, then |
fastrdf:windowSum¶
How the parser represents SUM(?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression, then |
fastrdf:windowSumDistinct¶
How the parser represents SUM(DISTINCT ?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression, then |
fastrdf:windowAvg¶
How the parser represents AVG(?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression, then |
fastrdf:windowAvgDistinct¶
How the parser represents AVG(DISTINCT ?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression, then |
fastrdf:windowMin¶
How the parser represents MIN(?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression, then |
fastrdf:windowMinDistinct¶
How the parser represents MIN(DISTINCT ?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression, then |
fastrdf:windowMax¶
How the parser represents MAX(?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression, then |
fastrdf:windowMaxDistinct¶
How the parser represents MAX(DISTINCT ?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression, then |
fastrdf:windowSample¶
How the parser represents SAMPLE(?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression, then |
fastrdf:windowSampleDistinct¶
How the parser represents SAMPLE(DISTINCT ?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression, then |
fastrdf:windowGroupConcat¶
How the parser represents GROUP_CONCAT(?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression and optionally the separator, then |
fastrdf:windowGroupConcatDistinct¶
How the parser represents GROUP_CONCAT(DISTINCT ?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The expression and optionally the separator, then |
fastrdf:windowCustom¶
How the parser represents a custom aggregate with OVER, e.g. agg:stdev(?x) OVER (...). Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The IRI of the aggregate and the expression, then |
fastrdf:windowCustomDistinct¶
How the parser represents a custom aggregate with DISTINCT and OVER. Write the SPARQL syntax, not this IRI.
IRI |
|
Kind |
Internal marker |
Arguments |
The IRI of the aggregate and the expression, then |
fastrdf:windowPartitionBy¶
Holds the expressions of PARTITION BY of a window function.
IRI |
|
Kind |
Internal marker |
Arguments |
any number of expressions |
fastrdf:windowOrderBy¶
Holds the sort keys of ORDER BY of a window function.
IRI |
|
Kind |
Internal marker |
Arguments |
any number of |
fastrdf:windowRows¶
Holds the frame ROWS BETWEEN start AND end of a window function. A bound is an offset from the current row, negative for PRECEDING, or fastrdf:windowUnbounded.
IRI |
|
Kind |
Internal marker |
Arguments |
the start and the end |
fastrdf:windowUnbounded¶
An UNBOUNDED bound of the frame of a window function.
IRI |
|
Kind |
Internal marker |
Ordered aggregates¶
fastrdf:orderedAggregate¶
How the parser represents the argument of an aggregate with an order, such as GROUP_CONCAT(?x ORDER BY ?y).
IRI |
|
Kind |
Internal marker |
Arguments |
the expression, then one or more |
fastrdf:asc¶
An ascending sort key of an ordered aggregate or a window function.
IRI |
|
Kind |
Internal marker |
Arguments |
one expression |
fastrdf:desc¶
A descending sort key of an ordered aggregate or a window function.
IRI |
|
Kind |
Internal marker |
Arguments |
one expression |
Paging¶
Written by Model.query_pages and Model.query_page in the query of a page after the first.
fastrdf:keysetAfter¶
Marks, in the ORDER BY of the query of a page, that only solutions after the last one of the previous page are kept.
IRI |
|
Kind |
Internal marker |
Arguments |
the ties, whether the order is strict, then the value of each sort key |
fastrdf:keysetBlankNode¶
The datatype of a literal that stands for a blank node among the values of fastrdf:keysetAfter.
IRI |
|
Kind |
Internal datatype |
fastrdf:keysetUnbound¶
Stands for an unbound value among the values of fastrdf:keysetAfter.
IRI |
|
Kind |
Internal marker |
Other¶
fastrdf:decodeString¶
Turns a column of dictionary-encoded strings into plain strings. fastrdf adds it when it rewrites common subexpressions; it does not change values.
IRI |
|
Kind |
Internal function |
Arguments |
one expression |
Returns |
The same values |
Notes for maintainers¶
This page is generated. The terms are listed in
docs/site/vocab_terms.py, andpython docs/site/vocab.pywrites this page andvocab.ttlfrom them. Add every new term of the vocabulary there.python docs/site/vocab.py --check, which the website workflow runs, fails when the sources use a term of the vocabulary that is not listed.Anchors are exact. Each term has an
<a id="…">with the fragment of its IRI, case-sensitively. Sphinx lowercases the anchors of headings, which would break#uuidv5.Machine-readable RDF.
vocab.ttldescribes the vocabulary in Turtle. GitHub Pages can not do content negotiation, soAccept-based dereferencing (HTML for browsers, Turtle for tools) would need a small server or aw3id.org-style redirect; the.ttllink is the static-hosting fallback.