StmtIterator si = model.getDeductionsModel().listStatements();

        while (si.hasNext()) {
            Statement s = si.next();
            reifyStatement(model, s, provenance);
        }

reify statement is

    public static void reifyStatement(Model model, Statement s,
            Individual provenance) {
        ReifiedStatement rs = model.createReifiedStatement(s);
        rs.addProperty(Provenance.isSourcedBy, provenance);
        Statement s2 = model.createStatement(provenance,
Provenance.sources, rs);
        model.add(s2);
    }


When I do this with regular statements it is fine.  When I do it with
deduced statements, it loses the reification when I re-read the  model.
What can I do?


On Sat, Dec 8, 2012 at 12:44 PM, Bob DuCharme <[email protected]> wrote:

> http://www.w3.org/TR/2012/PR-**sparql11-service-description-**
> 20121108/#accessing<http://www.w3.org/TR/2012/PR-sparql11-service-description-20121108/#accessing>describes
>  how "SPARQL services made available via the SPARQL
> Protocol/should/return a service description document at the service
> endpoint when dereferenced using the HTTP GET operation without any query
> parameter strings provided." While using jena-fuseki-0.2.5, the following
> query to Fuseki's endpoint does work for me, so I know that things are set
> up correctly:
>
>    curl "http://localhost:3030/**myDataset/query?query=SELECT%**
> 20DISTINCT%20%3Fp%20WHERE%20%**7B%20%3Fs%20%3Fp%20%3Fo%20%7D<http://localhost:3030/myDataset/query?query=SELECT%20DISTINCT%20%3Fp%20WHERE%20%7B%20%3Fs%20%3Fp%20%3Fo%20%7D>
> "
>
> However, the following gets me a 404:
>
>   curl 
> "http://localhost:3030/**myDataset/query<http://localhost:3030/myDataset/query>
> "
>
> Am I doing something wrong, or has this not yet been implemented in
> Fuseki? Can anyone tell me of other endpoints that have implemented the
> service description spec?
>
> thanks,
>
> Bob
>
>


-- 
"If you are lucky enough to have lived in Paris as a young man, then
wherever you go for the rest of your life, it stays with you, for Paris is
a moveable feast." -  Ernest Hemingway

www.scottstreit.com

Reply via email to