Update ARQ URLs for Jena 3
This commit is contained in:
parent
1c0dcd040c
commit
2efe4b4a87
7 changed files with 8 additions and 8 deletions
|
@ -33,7 +33,7 @@ public class VitroVocabulary {
|
||||||
public static final String OWL_ONTOLOGY = OWL+"Ontology";
|
public static final String OWL_ONTOLOGY = OWL+"Ontology";
|
||||||
public static final String OWL_THING = OWL+"Thing";
|
public static final String OWL_THING = OWL+"Thing";
|
||||||
|
|
||||||
public static final String AFN = "http://jena.hpl.hp.com/ARQ/function#";
|
public static final String AFN = "http://jena.apache.org/ARQ/function#";
|
||||||
|
|
||||||
public static final String label = vitroURI + "label";
|
public static final String label = vitroURI + "label";
|
||||||
|
|
||||||
|
|
|
@ -1171,7 +1171,7 @@ public class JenaBaseDao extends JenaBaseDaoCon {
|
||||||
|
|
||||||
String describeQueryStr = "DESCRIBE <" + res.getURI() + ">" ;
|
String describeQueryStr = "DESCRIBE <" + res.getURI() + ">" ;
|
||||||
|
|
||||||
// ? "PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#> \n\n" +
|
// ? "PREFIX afn: <http://jena.apache.org/ARQ/function#> \n\n" +
|
||||||
// "DESCRIBE ?bnode \n" +
|
// "DESCRIBE ?bnode \n" +
|
||||||
// "WHERE { \n" +
|
// "WHERE { \n" +
|
||||||
// " FILTER(afn:bnode(?bnode) = \"" + res.getId().toString() + "\")\n" +
|
// " FILTER(afn:bnode(?bnode) = \"" + res.getId().toString() + "\")\n" +
|
||||||
|
|
|
@ -262,7 +262,7 @@ public class JenaModelUtils {
|
||||||
dataset.getLock().enterCriticalSection(Lock.READ);
|
dataset.getLock().enterCriticalSection(Lock.READ);
|
||||||
try {
|
try {
|
||||||
StringBuffer buff = new StringBuffer();
|
StringBuffer buff = new StringBuffer();
|
||||||
buff.append("PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#> \n")
|
buff.append("PREFIX afn: <http://jena.apache.org/ARQ/function#> \n")
|
||||||
.append("CONSTRUCT { \n")
|
.append("CONSTRUCT { \n")
|
||||||
.append(" ?res <" + property.getURI() + "> ?o } WHERE { \n");
|
.append(" ?res <" + property.getURI() + "> ?o } WHERE { \n");
|
||||||
if (graphURI != null) {
|
if (graphURI != null) {
|
||||||
|
@ -294,7 +294,7 @@ public class JenaModelUtils {
|
||||||
|
|
||||||
StringBuffer describeQueryStrBuff = new StringBuffer()
|
StringBuffer describeQueryStrBuff = new StringBuffer()
|
||||||
.append("PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \n")
|
.append("PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \n")
|
||||||
.append("PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#> \n")
|
.append("PREFIX afn: <http://jena.apache.org/ARQ/function#> \n")
|
||||||
.append("DESCRIBE ?res WHERE { \n");
|
.append("DESCRIBE ?res WHERE { \n");
|
||||||
if (graphURI != null) {
|
if (graphURI != null) {
|
||||||
describeQueryStrBuff
|
describeQueryStrBuff
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
if (conceptIdStr != null) {
|
if (conceptIdStr != null) {
|
||||||
|
|
||||||
String describeQueryStr =
|
String describeQueryStr =
|
||||||
"PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#> \n\n" +
|
"PREFIX afn: <http://jena.apache.org/ARQ/function#> \n\n" +
|
||||||
"DESCRIBE ?bnode \n" +
|
"DESCRIBE ?bnode \n" +
|
||||||
"WHERE { \n" +
|
"WHERE { \n" +
|
||||||
" FILTER(afn:bnode(?bnode) = \"" + conceptIdStr + "\")\n" +
|
" FILTER(afn:bnode(?bnode) = \"" + conceptIdStr + "\")\n" +
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
private Model describeBnode(String bnodeId) {
|
private Model describeBnode(String bnodeId) {
|
||||||
String describeQueryStr =
|
String describeQueryStr =
|
||||||
"PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#> \n\n" +
|
"PREFIX afn: <http://jena.apache.org/ARQ/function#> \n\n" +
|
||||||
"DESCRIBE ?bnode \n" +
|
"DESCRIBE ?bnode \n" +
|
||||||
"WHERE { \n" +
|
"WHERE { \n" +
|
||||||
" FILTER(afn:bnode(?bnode) = \"" + bnodeId + "\")\n" +
|
" FILTER(afn:bnode(?bnode) = \"" + bnodeId + "\")\n" +
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<list-view-config>
|
<list-view-config>
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
PREFIX afn: <http://jena.apache.org/ARQ/function#>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<list-view-config>
|
<list-view-config>
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#>
|
PREFIX display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
PREFIX afn: <http://jena.apache.org/ARQ/function#>
|
||||||
|
|
||||||
SELECT ?menuItem
|
SELECT ?menuItem
|
||||||
(afn:localname(?menuItem) AS ?menuItemName)
|
(afn:localname(?menuItem) AS ?menuItemName)
|
||||||
|
|
Loading…
Add table
Reference in a new issue