[VIVO-1641] REPLACE jena afn with cross-platform regex (#105)
Resolves https://jira.duraspace.org/browse/VIVO-1641
This commit is contained in:
parent
12d703b4c8
commit
74b8f16aa2
6 changed files with 7 additions and 19 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
<list-view-config>
|
||||
<query-select>
|
||||
PREFIX afn: <http://jena.apache.org/ARQ/function#>
|
||||
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
|||
?localName
|
||||
WHERE {
|
||||
?subject ?property ?object .
|
||||
LET (?localName := afn:localname(?object))
|
||||
LET (?localName := REPLACE(STR(?object),"^.*(#)(.*)$", "$2"))
|
||||
|
||||
OPTIONAL {
|
||||
<precise-subquery>?subject ?property ?object .</precise-subquery>
|
||||
|
@ -33,7 +33,7 @@
|
|||
# Aug 9-10, 2011.
|
||||
# ?subclass vitro:inClassGroup ?classgroup
|
||||
}
|
||||
FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" )
|
||||
FILTER ( REPLACE(STR(?subclass),"^(.*)(#)(.*)$", "$1$2") != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" )
|
||||
</collated>
|
||||
|
||||
} ORDER BY <collated> ?subclass </collated> ASC( ?label ) ASC( ?label ) ASC( ?localName )
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
<list-view-config>
|
||||
<query-select>
|
||||
PREFIX display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#>
|
||||
PREFIX afn: <http://jena.apache.org/ARQ/function#>
|
||||
|
||||
|
||||
SELECT ?menuItem
|
||||
(afn:localname(?menuItem) AS ?menuItemName)
|
||||
(REPLACE(STR(?menuItem),"^.*(#)(.*)$", "$2") AS ?menuItemName)
|
||||
?linkText
|
||||
?menuPosition
|
||||
WHERE {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue