jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rve...@apache.org
Subject [34/50] [abbrv] jena git commit: DESCRIBE results are models; CONSTRUCT results are datasets.
Date Wed, 09 Sep 2015 07:44:45 GMT
DESCRIBE results are models; CONSTRUCT results are datasets.

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/a25376aa
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/a25376aa
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/a25376aa

Branch: refs/heads/JENA-507
Commit: a25376aa8d717ede9720270154def6af343a2e0c
Parents: 0b8c50b
Author: Andy Seaborne <andy@apache.org>
Authored: Sat Sep 5 17:09:31 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sat Sep 5 17:09:31 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/a25376aa/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
----------------------------------------------------------------------
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
index c43b257..6d7e8a6 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Query.java
@@ -379,7 +379,11 @@ public abstract class SPARQL_Query extends SPARQL_Protocol
         if ( result.isResultSet() )
             ResponseResultSet.doResponseResultSet(action, result.getResultSet(), qPrologue)
;
         else if ( result.isDataset() )
+            // CONSTRUCT is processed as a extended CONSTRUCT - result is a dataset. 
             ResponseDataset.doResponseDataset(action, result.getDataset());
+        else if ( result.isModel() )
+            // DESCRIBE rsults are models
+            ResponseDataset.doResponseModel(action, result.getModel());
         else if ( result.isBoolean() )
             ResponseResultSet.doResponseResultSet(action, result.getBooleanResult()) ;
         else


Mime
View raw message