Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoResult from the query of semantic Quran dataset #1

Open
halagamal opened this issue Apr 21, 2013 · 0 comments
Open

NoResult from the query of semantic Quran dataset #1

halagamal opened this issue Apr 21, 2013 · 0 comments

Comments

@halagamal
Copy link

Hi ,
i'm trying to work on dataset and make queries on it but when i run the queries ,no thing return :(
Here is my code:
import rdflib
from rdflib import Graph
g = Graph()
g.parse('http://datahub.io/dataset/semanticquran');
query = """
PREFIX dc: http://purl.org/dc/elements/1.1/
PREFIX foaf: http://xmlns.com/foaf/0.1/
PREFIX olia-ar: http://purl.org/olia/arabic_khoja.owl#
PREFIX dcterms: http://purl.org/dc/terms/
PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#
PREFIX owl: http://www.w3.org/2002/07/owl#
PREFIX xsd: http://www.w3.org/2001/XMLSchema#
PREFIX lexvo: http://lexvo.org/id/iso639-3/
PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
PREFIX gold: http://purl.org/linguistics/gold/
PREFIX skos: http://www.w3.org/2004/02/skos/core#
PREFIX qvoc: http://www.nlp2rdf.org/quranvocab#
SELECT DISTINCT ?wordText ?pos
WHERE
{ ?wordPart rdf:type qvoc:LexicalItem .
?wordPart gold:Root "ktb" .
?wordPart dcterms:isPartOf ?word .
?wordPart gold:PartOfSpeechProperty ?pos .
?word rdf:type qvoc:Word .
?word skos:prefLabel ?wordText
}
"""

for row in g.query(query):
print row

I have tried it also on the endpoint and also no thing returns
Any Help??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant