David,

What is the configuration setup for case 1? Without details, it looks to me fro the description as if the two services in fact share a dataset.

A complete, minimal example of the problem case, case 1, would make things easier at my end.

        Andy

(and which version of Fuseki?)

On 22/11/12 15:33, David Perez-Lopez wrote:
Hi all,

I'm trying to launch an instance of fuseki server providing the a
customized config file, with a couple of services and with their own
datasets. I'm trying two different ways for the setup of the environment:

1) Load the two services with 2 empty datasets, namely `repositories/ds`
and `repositories/ds2`. Then I upload with `s-post` ontology A in the
default graph of `repositories/ds` and ontology B in the default graph of
the `repositories/ds2`

2) Load one service with a dataset, `repositories/ds`, initialized with
ontology A and load another service with an empty dataset,
`repositories/ds2` . Then I add ontology B to it through `s-post` command.

To check if the import has been done successfully, I make two queries to
each dataset: one querying about the ontology that was loaded in it, and
another querying the ontology from the other dataset (that should always
return no matches since that ontology is from the other dataset)

The point is that in the case 1) the queries results looks like if both
ontologies were in the dataset `repositories/ds` and in case 2) the queries
return what they should. Any reasonable explanation for it? Thanks in
advanced


Note: This are the case 2) ontology ingestion and the results of the queries

     $ ./s-post http://localhost:3030/repositories/ds/data default
/Users/david/Documents/fuseki/ontologies/comiccon/democomiccon2011.owl

     $ ./s-post http://localhost:3030/repositories/ds2/data default
/Users/david/Documents/fuseki/ontologies/geopolitical/geopolitical.owl

     $ ./s-query --service='http://localhost:3030/repositories/ds/query'
'SELECT * WHERE {?x ?y <
http://www.playence.com/ontologies/democomiccon2011.owl#susan_stover>}
LIMIT 5'
     {
       "head": {
         "vars": [ "x" , "y" ]
       } ,
       "results": {
         "bindings": [
           {
             "x": { "type": "uri" , "value": "
http://www.playence.com/ontologies/democomiccon2011.owl#syrup"; } ,
             "y": { "type": "uri" , "value": "
http://www.playence.com/ontologies/democomiccon2011.owl#isProducedBy"; }
           }
         ]
       }
     }

     $ ./s-query --service='http://localhost:3030/repositories/ds2/query'
'SELECT * WHERE {?x ?y <
http://www.playence.com/ontologies/democomiccon2011.owl#susan_stover>}
LIMIT 5'
     {
       "head": {
         "vars": [ "x" , "y" ]
       } ,
       "results": {
         "bindings": [

         ]
       }
     }

     $ ./s-query --service='http://localhost:3030/repositories/ds/query'
'SELECT * WHERE {?x ?y <http://aims.fao.org/aos/geopolitical.owl#Argentina>}
LIMIT 5'
     {
       "head": {
         "vars": [ "x" , "y" ]
       } ,
       "results": {
         "bindings": [
           {
             "x": { "type": "uri" , "value": "
http://aims.fao.org/aos/geopolitical.owl#FAO_2006"; } ,
             "y": { "type": "uri" , "value": "
http://aims.fao.org/aos/geopolitical.owl#hasMember"; }
           } ,
           {
             "x": { "type": "uri" , "value": "
http://aims.fao.org/aos/geopolitical.owl#FAO"; } ,
             "y": { "type": "uri" , "value": "
http://aims.fao.org/aos/geopolitical.owl#hasMember"; }
           } ,
           {
             "x": { "type": "uri" , "value": "
http://aims.fao.org/aos/geopolitical.owl#World"; } ,
             "y": { "type": "uri" , "value": "
http://aims.fao.org/aos/geopolitical.owl#hasMember"; }
           } ,
           {
             "x": { "type": "uri" , "value": "
http://aims.fao.org/aos/geopolitical.owl#South_America"; } ,
             "y": { "type": "uri" , "value": "
http://aims.fao.org/aos/geopolitical.owl#hasMember"; }
           } ,
           {
             "x": { "type": "uri" , "value": "
http://aims.fao.org/aos/geopolitical.owl#Brazil"; } ,
             "y": { "type": "uri" , "value": "
http://aims.fao.org/aos/geopolitical.owl#hasBorderWith"; }
           }
         ]
       }
     }

     $ ./s-query --service='http://localhost:3030/repositories/ds2/query'
'SELECT * WHERE {?x ?y <http://aims.fao.org/aos/geopolitical.owl#Argentina>}
LIMIT 5'
     {
       "head": {
         "vars": [ "x" , "y" ]
       } ,
       "results": {
         "bindings": [

         ]
       }
     }


Reply via email to