Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PREFIX dbo: <http://dbpedia.org/ontology/>
- SELECT DISTINCT ?Astronaut ?Astronaut_Label WHERE {
- ?Astronaut rdf:type dbo:Astronaut.
- ?Astronaut rdfs:label ?Astronaut_Label
- FILTER((LANGMATCHES(LANG(?Astronaut_Label), "en")) && (LANGMATCHES(LANG(?Astronaut_Label), "en")))
- }
- PREFIX dbo: <http://dbpedia.org/ontology/>
- SELECT COUNT(*) {
- SELECT DISTINCT ?Astronaut ?Astronaut_Label WHERE {
- ?Astronaut rdf:type dbo:Astronaut.
- ?Astronaut rdfs:label ?Astronaut_Label
- FILTER((LANGMATCHES(LANG(?Astronaut_Label), "en")) && (LANGMATCHES(LANG(?Astronaut_Label), "en")))
- }
- }
- PREFIX dbo: <http://dbpedia.org/ontology/>
- PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
- SELECT DISTINCT ?astronaut ?astronaut_Label ?country ?country_Label
- WHERE {
- ?astronaut a dbo:Astronaut.
- ?astronaut rdfs:label ?astronaut_Label.
- ?astronaut dbo:birthPlace ?country.
- ?country a dbo:Country.
- ?country rdfs:label ?country_Label.
- FILTER((LANGMATCHES(LANG(?astronaut_Label), "en")) && (LANGMATCHES(LANG(?astronaut_Label), "en")))
- FILTER((LANGMATCHES(LANG(?country_Label), "en")) && (LANGMATCHES(LANG(?country_Label), "en")) && ((STR(?country_Label)) = "United States"))
- }
- PREFIX dbo: <http://dbpedia.org/ontology/>
- PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
- SELECT DISTINCT
- ?astronaut ?astronaut_Label ?country ?country_Label ?city ?city_Label
- WHERE{
- ?astronaut a dbo:Astronaut.
- ?astronaut rdfs:label ?astronaut_Label.
- ?astronaut dbo:birthPlace ?country.
- ?astronaut dbo:birthPlace ?city.
- ?country a dbo:Country.
- ?country rdfs:label ?country_Label.
- ?city a dbo:City.
- ?city rdfs:label ?city_Label.
- FILTER((LANGMATCHES(LANG(?astronaut_Label), "en")) && (LANGMATCHES(LANG(?astronaut_Label), "en")))
- FILTER((LANGMATCHES(LANG(?country_Label), "en")) && (LANGMATCHES(LANG(?country_Label), "en")) && ((STR(?country_Label)) = "United States"))
- FILTER((LANGMATCHES(LANG(?city_Label), "en")) && (LANGMATCHES(LANG(?city_Label), "en")) && (REGEX(?city_Label, "Oklahoma", "i")))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement