From f00e8bf5858cec4d19bb23953a688aa205a63ddb Mon Sep 17 00:00:00 2001 From: bjl23 Date: Wed, 1 Dec 2010 22:03:02 +0000 Subject: [PATCH] adding graph variable to 'raw statements' queries --- webapp/web/templates/edit/specific/ents_edit.jsp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webapp/web/templates/edit/specific/ents_edit.jsp b/webapp/web/templates/edit/specific/ents_edit.jsp index f498e00b6..211cf310b 100644 --- a/webapp/web/templates/edit/specific/ents_edit.jsp +++ b/webapp/web/templates/edit/specific/ents_edit.jsp @@ -38,9 +38,9 @@ SELECT ?pred ?predLabel ?obj ?objLabel WHERE { - {<${entity.URI}> ?pred ?obj} - OPTIONAL { ?obj rdfs:label ?objLabel } - OPTIONAL { ?pred rdfs:label ?predLabel } + { GRAPH ?g { <${entity.URI}> ?pred ?obj} } + OPTIONAL { GRAPH ?h { ?obj rdfs:label ?objLabel } } + OPTIONAL { GRAPH ?i { ?pred rdfs:label ?predLabel } } } limit 10000"/>
@@ -55,9 +55,9 @@ SELECT ?sub ?subL ?pred ?predLabel WHERE { - { ?sub ?pred <${entity.URI}> } - OPTIONAL { ?sub rdfs:label ?subL } - OPTIONAL { ?pred rdfs:label ?predLabel } + { GRAPH ?g { ?sub ?pred <${entity.URI}> } } + OPTIONAL { GRAPH ?h { ?sub rdfs:label ?subL } } + OPTIONAL { GRAPH ?i { ?pred rdfs:label ?predLabel } } } limit 10000"/>