sparql - Get only english values and integers from dbpedia -
i trying retrieve english values , integers dbpedia. example, following sparql query
prefix owl: <http://www.w3.org/2002/07/owl#> prefix xsd: <http://www.w3.org/2001/xmlschema#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix foaf: <http://xmlns.com/foaf/0.1/> prefix dc: <http://purl.org/dc/elements/1.1/> prefix dbr: <http://dbpedia.org/resource/> prefix dbpedia2: <http://dbpedia.org/property/> prefix dbpedia: <http://dbpedia.org/> prefix skos: <http://www.w3.org/2004/02/skos/core#> prefix dbo: <http://dbpedia.org/ontology/> select distinct ?p ?o { dbr:cristiano_ronaldo ?p ?o filter(langmatches(lang(?o),'en'))} }
it returns english values. missed important details such date of birth, height, number of caps etc. being missed because integer. how can make rdf resultset consisting of proper set of information cristiano ronaldo?
prefix dbr: <http://dbpedia.org/resource/> select distinct ?p ?o { dbr:cristiano_ronaldo ?p ?o bind(datatype(?o) ?dt) filter(if(isliteral(?o) && !bound(?dt), langmatches(lang(?o),'en'), true)) }
Comments
Post a Comment