[ 
https://issues.apache.org/jira/browse/STANBOL-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Florent ANDRE updated STANBOL-1357:
-----------------------------------

    Attachment: STANBOL-1357.patch

this patch contains some others modifications : 

******
commons/namespaceprefix/service/src/main/java/org/apache/stanbol/commons/namespaceprefix/NamespacePrefixService.java

=> add  a method to the interface to import mapping from inputstreams

******
entityhub/jersey/pom.xml

=> move all stanbol's module dependencies to a unified (0.12.1-SNAPSHOT) one.
This was done throw maven property... Seems to remember that it's not really 
like here... but found it a really easy and clean way to stop the hassle on 
version numbering inside each module...

*****
entityhub/jersey/src/test/java/org/apache/stanbol/entityhub/jersey/writers/QueryResultsToRDFTest.java

=> Test case. 
This also show a commented potential problem when serializing 
RDFQueryResultsList to Json (that don't append when serializing QueryResultList.

****
entityhub/model/clerezza/src/main/java/org/apache/stanbol/entityhub/model/clerezza/RdfRepresentation.java

=> contains the fix : 
     public TripleCollection getRdfGraph(){
-        return graphNode.getGraph();
+       return graphNode.getNodeContext();
     }

=> and a toJson method to make the toString result more human readable.

> RDF QueryResultList serialization return the whole complete graph
> -----------------------------------------------------------------
>
>                 Key: STANBOL-1357
>                 URL: https://issues.apache.org/jira/browse/STANBOL-1357
>             Project: Stanbol
>          Issue Type: Bug
>          Components: Entityhub
>            Reporter: Florent ANDRE
>         Attachments: STANBOL-1357.patch
>
>
> When performing a search throw entityHub and serialize the result as Json, 
> you only get the result's triples.
> When you serialize the very same search as RDF, you get all the RDF graph 
> database you search into.
> A test case for this an the patch is attached.
> This patch pass 0.12.x branch clean install. Not ported to 1.0.0.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to