2016-05-18 9 views
0

Ich kann den Spieler, TeamName, Stadt, DOB, Nein und Position des Spielers durch Ausführen der unten stehenden SPARQL aber wie bekomme ich die Zusammenfassung (Beschreibung) des Teams bitte ?Dbpedia sparql - Wie bekomme ich die Zusammenfassung für ein Team?

PREFIX dbpedia2: <http://dbpedia.org/property/> 
SELECT * 
WHERE { 
?player dbpedia2:currentclub ?teamName. 
OPTIONAL {?player dbpedia2:cityofbirth ?city}. 
OPTIONAL {?player dbpedia2:dateOfBirth ?dob}. 
OPTIONAL {?player dbpedia2:clubnumber ?no}. 
OPTIONAL {?player dbpedia2:position ?position}. 
} 

Below Abfrage wird mir die Beschreibung von Barc erhalten, aber wie kombiniere ich diese beiden Anfragen bitte die Zusammenfassung im Ergebnis enthalten?

prefix dbpedia: <http://dbpedia.org/resource/> 
prefix dbpedia-owl: <http://dbpedia.org/ontology/> 
select ?abstract ?thumbnail where { 
    <http://dbpedia.org/resource/FC_Barcelona> dbpedia-owl:abstract ?abstract ; 
             dbpedia-owl:thumbnail ?thumbnail . 
filter(langMatches(lang(?abstract),"en")) 
} 

Antwort

0

Ich glaube, ich es habe:

PREFIX dbpedia2: <http://dbpedia.org/property/> 
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> 
SELECT * 
WHERE { 
?player dbpedia2:currentclub ?teamName. 
?teamName dbpedia-owl:abstract ?abstract. 
OPTIONAL {?teamName dbpedia2:ground ?ground}. 
OPTIONAL {?teamName dbpedia2:capacity ?capacity}. 
OPTIONAL {?teamName dbpedia2:manager ?manager}. 
OPTIONAL {?player dbpedia2:cityofbirth ?city}. 
OPTIONAL {?player dbpedia2:dateOfBirth ?dob}. 
OPTIONAL {?player dbpedia2:clubnumber ?no}. 
OPTIONAL {?player dbpedia2:position ?position}. 
filter(langMatches(lang(?abstract),"en")) 
}