I have 2 sparql queries but they don't returns correct results (triples) First one return correct result but some triples are missed the second one returns all correct triples but not in the right format, in fact i don't want to display uri 1:
SELECT distinct ?s ?v ?o WHERE {
{ ?s2 pred:relationsubject ?s_urii .
?s_urii pred:name ?s .
?s2 pred:relationobject ?o .
?s2 pred:verb ?v .
}
result:
1 MM mismanage H
2 HC take T
3 HC be D
4 HC face P
2:
SELECT distinct ?s_urii ?v ?o WHERE {
{ ?s2 pred:relationsubject ?s_urii .
?s2 pred:relationobject ?o .
?s2 pred:verb ?v .
}
result:
1 http://5a0 mismanage H
2 http://6b1 take T
3 http://6b1 be D
4 http://6b1 face P
5 http://5a0 make with G
6 http://6b1 not make TN
7 http://6b0 have TL
thoses URI(http://5a0,http://5b1...)
corresponds to sujects (MM,HC...) in the database.
Can anyone please tell me the problem?
I'm using ARC triplestore so triples are stored in mysql database and i'm using php language to execute my queries.
You find in this link the file which contains data enter link description here
I also tried this query but it do not give me the all records:
SELECT distinct ?s ?v ?o WHERE {
{ ?s2 pred:relationsubject ?s_urii .
?s_urii pred:name ?s .
?s2 pred:relationobject ?o .
?s2 pred:verb ?v .
}