Skip to content
Permalink
Browse files
Update function and property function NS to preferred form (#40)
  • Loading branch information
afs committed Feb 16, 2021
1 parent ae36132 commit 25fde1af5026ff1f963586aeef10f13a5a0920ba
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
@@ -52,9 +52,9 @@ access the queried dataset.
### Dynamically Loaded Functions

The ARQ function library uses this mechanism.  The namespace of the
ARQ function library is <`http://jena.hpl.hp.com/ARQ/function#>`.
ARQ function library is `<http://jena.apache.org/ARQ/function#>`.

PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
PREFIX afn: <http://jena.apache.org/ARQ/function#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
SELECT ?v {
?x dc:date ?date .
@@ -87,15 +87,15 @@ be query variable). They may take a list for subject or object.
One common case is for access to collections (RDF lists) or
containers (rdf:Bag, rdf:Seq, rdf:Alt).

PREFIX list: <http://jena.hpl.hp.com/ARQ/list#>
PREFIX list: <http://jena.apache.org/ARQ/list#>
SELECT ?member {
?x :p ?list . # Some way to find the list
?list list:member ?member .
}

which can also be written:

PREFIX list: <http://jena.hpl.hp.com/ARQ/list#>
PREFIX list: <http://jena.apache.org/ARQ/list#>
SELECT ?member {
?x :p [ list:member ?member ]
}
@@ -33,7 +33,7 @@ the `PREFIX` declaration.
All code loading is performed via the `MappedLoader` class. Before
actually loading the code, the mapped loader applies any
transformation of URIs. For example, the ARQ function library has a
namespace of `<http://jena.hpl.hp.com/ARQ/function#>` and resides
namespace of `<http://jena.apache.org/ARQ/function#>` and resides
in the Java package org.apache.jena.sparql.function.library. The
mapped loader includes a partial rewrite rule turning http URLs
starting with that namespace into java: URIs using the package
@@ -33,7 +33,7 @@ page.
### Function Library

The prefix `afn` is `<http://jena.apache.org/ARQ/function#>`.
(the old prefix of `<http://jena.hpl.hp.com/ARQ/function#>` continues to
(The old prefix of `<http://jena.hpl.hp.com/ARQ/function#>` continues to
work. Applications are encouraged to switch.)

Direct loading using a URI prefix of
@@ -15,7 +15,9 @@ Applications can also [provide their own property functions](writing_propfuncs.h

## Property Function Library

Prefix `apf:` which is `<http://jena.hpl.hp.com/ARQ/property#>`.
The prefix `apf` is `<http://jena.apache.org/ARQ/property#>`.
(The old prefix of `<http://jena.hpl.hp.com/ARQ/property#>` continues to
work. Applications are encouraged to switch.)

Direct loading using a URI prefix of
`<java:org.apache.jena.sparql.pfunction.library.>` (note the final
@@ -14,6 +14,7 @@ searches within SPARQL queries. Here is a version compatibility table:
| 3.3.0 - 3.9.0 | 6.4.x | not supported | 5.2.2 - 5.2.13 |
| 3.10.0 | 7.4.0 | not supported | 6.4.2 |
| 3.15.0 | 7.7.x | not supported | 6.8.6 |
| 4.0.0 | 8.8.x | not supported | not supported |

SPARQL allows the use of
[regex](https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-regex)

0 comments on commit 25fde1a

Please sign in to comment.