Remove unneeded GRAPH variables from queries used to generate property list on individual profile page

This commit is contained in:
ryounes 2011-03-29 14:20:54 +00:00
parent cdd8b0b91d
commit 7f679af874
3 changed files with 5 additions and 7 deletions

View file

@ -86,8 +86,8 @@ public class DataPropertyDaoJena extends PropertyDaoJena implements
protected static final String DATA_PROPERTY_QUERY_STRING =
prefixes + "\n" +
"SELECT DISTINCT ?property WHERE { \n" +
" GRAPH ?g1 { ?subject ?property ?object } \n" +
" GRAPH ?g2 { ?property rdf:type owl:DatatypeProperty } \n" +
" ?subject ?property ?object . \n" +
" ?property rdf:type owl:DatatypeProperty . \n" +
propertyFilters +
"}";

View file

@ -44,9 +44,7 @@ public class DataPropertyStatementDaoJena extends JenaBaseDao implements DataPro
protected static final String DATA_PROPERTY_VALUE_QUERY_STRING =
"SELECT ?value WHERE { \n" +
" GRAPH ?g {\n" +
" ?subject ?property ?value . \n" +
" }\n" +
"}";
static protected Query dataPropertyValueQuery;

View file

@ -80,8 +80,8 @@ public class ObjectPropertyDaoJena extends PropertyDaoJena implements ObjectProp
protected static final String OBJECT_PROPERTY_QUERY_STRING =
prefixes + "\n" +
"SELECT DISTINCT ?property WHERE { \n" +
" GRAPH ?g1 { ?subject ?property ?object } \n" +
" GRAPH ?g2 { ?property rdf:type owl:ObjectProperty } \n" +
" ?subject ?property ?object . \n" +
" ?property rdf:type owl:ObjectProperty . \n" +
propertyFilters +
"}";