We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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??
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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??
The text was updated successfully, but these errors were encountered: