diff options
author | gebele <gebele@in-silico.ch> | 2012-07-20 17:15:50 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2012-07-20 17:15:50 +0200 |
commit | 867e6ed876d42f77f05f416680f703ac830d2427 (patch) | |
tree | 02c23104d2acdabaadae04e9c515cc1f54e9901b | |
parent | 690f6f481f8da0ddce3785417d0b995c3c3c82e0 (diff) |
fixed subject in sparql for uri-list
-rw-r--r-- | lib/4store.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/4store.rb b/lib/4store.rb index cbce7bb..cbe8446 100644 --- a/lib/4store.rb +++ b/lib/4store.rb @@ -9,7 +9,7 @@ module OpenTox mime_type = "text/html" if mime_type.match(%r{\*/\*}) bad_request_error "'#{mime_type}' is not a supported mime type. Please specify one of #{@@accept_formats.join(", ")} in the Accept Header." unless @@accept_formats.include? mime_type if mime_type =~ /uri-list/ - sparql = "SELECT DISTINCT ?g WHERE {GRAPH ?g {?g <#{RDF.type}> <#{klass}>; ?p ?o. } }" + sparql = "SELECT DISTINCT ?g WHERE {GRAPH ?g {?s <#{RDF.type}> <#{klass}>; ?p ?o. } }" else sparql = "CONSTRUCT {?s ?p ?o.} FROM WHERE {?s <#{RDF.type}> <#{klass}>; ?p ?o. }" end |