Sample data
<http://www.Department4.University3.edu> a :Department .
<http://www.Department4.University3.edu> :name "Department4" .
<http://www.Department4.University3.edu> :subOrganizationOf
<http://www.University3.edu> .
<http://www.Department4.University3.edu/AssistantProfessor0> a
:AssistantProfessor .
<http://www.Department4.University3.edu/AssistantProfessor0>
:doctoralDegreeFrom <http://www.University2980.edu> .
<http://www.Department4.University3.edu/AssistantProfessor0>
:emailAddress "[email protected]" .
<http://www.Department4.University3.edu/AssistantProfessor0>
:mastersDegreeFrom <http://www.University2549.edu> .
<http://www.Department4.University3.edu/AssistantProfessor0> :name
"AssistantProfessor0" .
<http://www.Department4.University3.edu/AssistantProfessor0>
:researchInterest "Research38" .
<http://www.Department4.University3.edu/AssistantProfessor0> :teacherOf
<http://www.Department4.University3.edu/Course29> .
<http://www.Department4.University3.edu/AssistantProfessor0> :teacherOf
<http://www.Department4.University3.edu/Course30> .
<http://www.Department4.University3.edu/AssistantProfessor0> :teacherOf
<http://www.Department4.University3.edu/GraduateCourse29> .
<http://www.Department4.University3.edu/AssistantProfessor0> :teacherOf
<http://www.Department4.University3.edu/GraduateCourse30> .
<http://www.Department4.University3.edu/AssistantProfessor0> :telephone
"xxx-xxx-xxxx" .
<http://www.Department4.University3.edu/AssistantProfessor0>
:undergraduateDegreeFrom <http://www.University10318.edu> .
<http://www.Department4.University3.edu/AssistantProfessor0> :worksFor
<http://www.Department4.University3.edu> .
On 01/07/2014 07:35 PM, Rafiq wrote:
Joshua, thanks for the response...and I am aware what you said.
I expect an answer because I received answer of this query using other
triplestores.
I generated this dataset using LUBM data generator. The dataset
contains 153 million triples.
On 01/07/2014 07:17 PM, Joshua TAYLOR wrote:
Just because the query is legal SPARQL doesn't mean that it it matches
any of your data? I can send this query to DBpedia, and I get no
results, not because there's no such person, but because DBpedia
doesn't include any data about this person:
select ?person where ui
?person a dbpedia-owl:Person ;
foaf:name "Rafiq"@en ;
}
What's your data? Why do you expect your query to work?
On Tue, Jan 7, 2014 at 1:00 PM,
Rafiq<[email protected]> wrote:
Hi,
Here is my query
SELECT ?x ?y WHERE {
?x<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Student> .
?y<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#Course> .
<http://www.Department0.University0.edu/AssociateProfessor0>
<http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#teacherOf> ?y .
?x<http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#takesCourse> ?y
}
When I execute it I get the answer below:
{
"head": {
"vars": [ "x" , "y" ]
} ,
"results": {
"bindings": [
]
}
}
I could not find any valid reason why it returns this answer. I
validated
the query using online validator, its absolutely fine.
Then I modify the query.. the query turns into the following:
'SELECT ?x ?y WHERE {?x a ?Student . ?y a ?Course .
?AssociateProfessor0
?teacherOf ?y . ?x ?takesCourse ?y}'
I left it two days, it did not return anything because the query
could not
be parsed. Where did I do mistake if I did any?
I have a few modified queries with single variable worked fine
however, this
one did not. I want to believe
the number of variable when is two (X, Y) creating a problem?
For your information, I am using Fuseqi server with TDB store.
Regards,
Rafiq