SPARQL QUERY given nothing -


i have 2 graph named <http://localhost:5822/fub> & <http://localhost:5822/fub_byrn>. both graph contain metaphonecode. wanted result metaphone have same metaphonecode appear in both graph. after executing query no geting result. need , suggestion.

select ?metaphone  {   graph <http://localhost:5822/fub>   {      graph ?g {}     { ?s <http://localhost:2020/vocab/dbo_unidata_metaphonecode> ?metaphone . }   }   graph <http://localhost:5822/fub_byrn>    {     graph ?g {}     { ?s <http://localhost:2020/vocab/dbo_fub_bayern_metaphonecode> ?metaphone . }   } } limit 100 

when formatted in more readable way, query is:

select ?metaphone {   graph <http://localhost:5822/fub> {     graph ?g {     }     {       ?s <http://localhost:2020/vocab/dbo_unidata_metaphonecode> ?metaphone;     }   }    graph <http://localhost:5822/fub_byrn> {     graph ?g {     }     {       ?s <http://localhost:2020/vocab/dbo_fub_bayern_metaphonecode> ?metaphone;     }   } } limit 100 

there @ least 2 issues:

  1. your pattern graph ?g {} won't except bind ?g each graph in dataset. it's not clear that should negatively affect anything, it's hard see why useful.

  2. you're using different property metaphonecode in fub graph , fub_byrn graphs. in fub it's

    <http://localhost:2020/vocab/dbo_unidata_metaphonecode> 

    while in fub_byrn it's

    <http://localhost:2020/vocab/dbo_fub_bayern_metaphonecode> 

    are these supposed same?


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -