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:
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.you're using different property
metaphonecode
infub
graph ,fub_byrn
graphs. infub
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
Post a Comment