Skip to content

NoResult from the query of semantic Quran dataset #1

@halagamal

Description

@halagamal

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??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions