From 49561b914085cd864e683392a0c8ff4ceaadb633 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Thu, 22 Aug 2024 09:07:48 +0200 Subject: [PATCH] Add starring-selective-filter Related to comunica/comunica#1415 --- sparql/manifest-raw.txt | 1 + sparql/sparql-manifest.ttl | 14 ++- sparql/starring-selective-filter.rq | 7 ++ .../0261dc1fa1eb1577a9cc6190c9c7b9fe74ae3f95 | 45 +++++++ .../039924e46a4351cae68e1b6c26879f31ad9a27ef | 45 +++++++ .../4d9044d9d89dc4e75907e0b2e1b7a00a7fdb59a0 | 47 ++++++++ .../7f6727e5c121ae1836858e64c653db06ee2cf1bc | 46 +++++++ .../b3362f21853ce86423e2979ed9f18cfd1672cbc9 | 112 ++++++++++++++++++ .../c48c477f42d607f67fdb050e4197eb3f18d2ab0b | 79 ++++++++++++ .../c6c5d3c7b70d7e7fdcfbd42278f44033b3927363 | 45 +++++++ .../dab17ca6ce4a739481da059d843916f26d9053ea | 44 +++++++ .../f1237015b4c06b398221fe6b7d0c7175e266656b | 45 +++++++ sparql/starring-selective-filter/result.srj | 29 +++++ 13 files changed, 558 insertions(+), 1 deletion(-) create mode 100644 sparql/starring-selective-filter.rq create mode 100644 sparql/starring-selective-filter/0261dc1fa1eb1577a9cc6190c9c7b9fe74ae3f95 create mode 100644 sparql/starring-selective-filter/039924e46a4351cae68e1b6c26879f31ad9a27ef create mode 100644 sparql/starring-selective-filter/4d9044d9d89dc4e75907e0b2e1b7a00a7fdb59a0 create mode 100644 sparql/starring-selective-filter/7f6727e5c121ae1836858e64c653db06ee2cf1bc create mode 100644 sparql/starring-selective-filter/b3362f21853ce86423e2979ed9f18cfd1672cbc9 create mode 100644 sparql/starring-selective-filter/c48c477f42d607f67fdb050e4197eb3f18d2ab0b create mode 100644 sparql/starring-selective-filter/c6c5d3c7b70d7e7fdcfbd42278f44033b3927363 create mode 100644 sparql/starring-selective-filter/dab17ca6ce4a739481da059d843916f26d9053ea create mode 100644 sparql/starring-selective-filter/f1237015b4c06b398221fe6b7d0c7175e266656b create mode 100644 sparql/starring-selective-filter/result.srj diff --git a/sparql/manifest-raw.txt b/sparql/manifest-raw.txt index 71b29425..201ce1c4 100755 --- a/sparql/manifest-raw.txt +++ b/sparql/manifest-raw.txt @@ -16,3 +16,4 @@ empty-group FILE@https://raw.githubusercontent.com/comunica/manifest-ldf-tests/m optional-filter-exists FILE@https://raw.githubusercontent.com/comunica/manifest-ldf-tests/master/sparql/optional-filter-exists_static/2triples.ttl willis-product TPF@https://fragments.dbpedia.org/2016-04/en non-existing-optional-fed TPF@https://fragments.dbpedia.org/2016-04/en TPF@https://data.linkeddatafragments.org/ugent-biblio +starring-selective-filter TPF@https://fragments.dbpedia.org/2016-04/en diff --git a/sparql/sparql-manifest.ttl b/sparql/sparql-manifest.ttl index 3ca859d3..7e5d89c9 100644 --- a/sparql/sparql-manifest.ttl +++ b/sparql/sparql-manifest.ttl @@ -27,6 +27,7 @@ :optional-filter-exists :willis-product :non-existing-optional-fed + :starring-selective-filter ) . :directors01 rdf:type et:LdfQueryEvaluationTest ; @@ -249,4 +250,15 @@ et:sourceType et:TPF ] [ et:source ; et:sourceType et:TPF ] ) ; - mf:result . \ No newline at end of file + mf:result . + +:starring-selective-filter rdf:type et:LdfQueryEvaluationTest ; + mf:name "SELECT - DBpedia TPF Movies starring Brad Pitt with selective filter" ; + rdfs:comment "A query with a very selective filter that can be pushed into a triple pattern" ; + mf:action + [ qt:query ; + et:mockFolder ] ; + et:dataSources( + [ et:source ; + et:sourceType et:TPF ] ) ; + mf:result . \ No newline at end of file diff --git a/sparql/starring-selective-filter.rq b/sparql/starring-selective-filter.rq new file mode 100644 index 00000000..f61654a5 --- /dev/null +++ b/sparql/starring-selective-filter.rq @@ -0,0 +1,7 @@ +SELECT ?movie ?title ?name +WHERE { + ?movie dbpedia-owl:starring [ rdfs:label "Brad Pitt"@en ]; + rdfs:label ?title; + dbpedia-owl:director [ rdfs:label ?name ]. + FILTER(?movie = ) +} \ No newline at end of file diff --git a/sparql/starring-selective-filter/0261dc1fa1eb1577a9cc6190c9c7b9fe74ae3f95 b/sparql/starring-selective-filter/0261dc1fa1eb1577a9cc6190c9c7b9fe74ae3f95 new file mode 100644 index 00000000..a416f711 --- /dev/null +++ b/sparql/starring-selective-filter/0261dc1fa1eb1577a9cc6190c9c7b9fe74ae3f95 @@ -0,0 +1,45 @@ +# Query: subject=http%3A%2F%2Fdbpedia.org%2Fresource%2F12_Monkeys&predicate=http%3A%2F%2Fdbpedia.org%2Fontology%2Fstarring +# Hashed IRI: https://fragments.dbpedia.org/2016-04/en?subject=http%3A%2F%2Fdbpedia.org%2Fresource%2F12_Monkeys&predicate=http%3A%2F%2Fdbpedia.org%2Fontology%2Fstarring +# Content-type: application/trig;charset=utf-8 +@prefix rdf: . +@prefix rdfs: . +@prefix owl: . +@prefix skos: . +@prefix xsd: . +@prefix dc: . +@prefix dcterms: . +@prefix dc11: . +@prefix foaf: . +@prefix geo: . +@prefix dbpedia: . +@prefix dbpedia-owl: . +@prefix dbpprop: . +@prefix hydra: . +@prefix void: . + + { + foaf:primaryTopic . + hydra:member . + a void:Dataset, hydra:Collection; + void:subset ; + hydra:search _:triplePattern. +_:triplePattern hydra:template "https://fragments.dbpedia.org/2016-04/en{?subject,predicate,object}"; + hydra:variableRepresentation hydra:ExplicitRepresentation; + hydra:mapping _:subject, _:predicate, _:object. +_:subject hydra:variable "subject"; + hydra:property rdf:subject. +_:predicate hydra:variable "predicate"; + hydra:property rdf:predicate. +_:object hydra:variable "object"; + hydra:property rdf:object. + void:subset ; + a hydra:PartialCollectionView; + dcterms:title "Linked Data Fragment of DBpedia 2016-04"@en; + dcterms:description "Triple Pattern Fragment of the 'DBpedia 2016-04' dataset containing triples matching the pattern { ?o }."@en; + dcterms:source ; + hydra:totalItems "5"^^xsd:integer; + void:triples "5"^^xsd:integer; + hydra:itemsPerPage "100"^^xsd:integer; + hydra:first +} + dbpedia-owl:starring dbpedia:Brad_Pitt, dbpedia:Bruce_Willis, dbpedia:Christopher_Plummer, , dbpedia:Madeleine_Stowe. diff --git a/sparql/starring-selective-filter/039924e46a4351cae68e1b6c26879f31ad9a27ef b/sparql/starring-selective-filter/039924e46a4351cae68e1b6c26879f31ad9a27ef new file mode 100644 index 00000000..d58e2172 --- /dev/null +++ b/sparql/starring-selective-filter/039924e46a4351cae68e1b6c26879f31ad9a27ef @@ -0,0 +1,45 @@ +# Query: subject=http%3A%2F%2Fdbpedia.org%2Fresource%2F12_Monkeys&predicate=http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23label +# Hashed IRI: https://fragments.dbpedia.org/2016-04/en?subject=http%3A%2F%2Fdbpedia.org%2Fresource%2F12_Monkeys&predicate=http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23label +# Content-type: application/trig;charset=utf-8 +@prefix rdf: . +@prefix rdfs: . +@prefix owl: . +@prefix skos: . +@prefix xsd: . +@prefix dc: . +@prefix dcterms: . +@prefix dc11: . +@prefix foaf: . +@prefix geo: . +@prefix dbpedia: . +@prefix dbpedia-owl: . +@prefix dbpprop: . +@prefix hydra: . +@prefix void: . + + { + foaf:primaryTopic . + hydra:member . + a void:Dataset, hydra:Collection; + void:subset ; + hydra:search _:triplePattern. +_:triplePattern hydra:template "https://fragments.dbpedia.org/2016-04/en{?subject,predicate,object}"; + hydra:variableRepresentation hydra:ExplicitRepresentation; + hydra:mapping _:subject, _:predicate, _:object. +_:subject hydra:variable "subject"; + hydra:property rdf:subject. +_:predicate hydra:variable "predicate"; + hydra:property rdf:predicate. +_:object hydra:variable "object"; + hydra:property rdf:object. + void:subset ; + a hydra:PartialCollectionView; + dcterms:title "Linked Data Fragment of DBpedia 2016-04"@en; + dcterms:description "Triple Pattern Fragment of the 'DBpedia 2016-04' dataset containing triples matching the pattern { ?o }."@en; + dcterms:source ; + hydra:totalItems "1"^^xsd:integer; + void:triples "1"^^xsd:integer; + hydra:itemsPerPage "100"^^xsd:integer; + hydra:first +} + rdfs:label "12 Monkeys"@en. diff --git a/sparql/starring-selective-filter/4d9044d9d89dc4e75907e0b2e1b7a00a7fdb59a0 b/sparql/starring-selective-filter/4d9044d9d89dc4e75907e0b2e1b7a00a7fdb59a0 new file mode 100644 index 00000000..70b47759 --- /dev/null +++ b/sparql/starring-selective-filter/4d9044d9d89dc4e75907e0b2e1b7a00a7fdb59a0 @@ -0,0 +1,47 @@ +# Query: subject=http%3A%2F%2Fdbpedia.org%2Fresource%2F12_Monkeys&predicate=http%3A%2F%2Fdbpedia.org%2Fontology%2Fdirector +# Hashed IRI: https://fragments.dbpedia.org/2016-04/en?subject=http%3A%2F%2Fdbpedia.org%2Fresource%2F12_Monkeys&predicate=http%3A%2F%2Fdbpedia.org%2Fontology%2Fdirector +# Content-type: application/trig;charset=utf-8 +@prefix rdf: . +@prefix rdfs: . +@prefix owl: . +@prefix skos: . +@prefix xsd: . +@prefix dc: . +@prefix dcterms: . +@prefix dc11: . +@prefix foaf: . +@prefix geo: . +@prefix dbpedia: . +@prefix dbpedia-owl: . +@prefix dbpprop: . +@prefix hydra: . +@prefix void: . + + { + foaf:primaryTopic . + hydra:member . + a void:Dataset, hydra:Collection; + void:subset ; + hydra:search _:triplePattern. +_:triplePattern hydra:template "https://fragments.dbpedia.org/2016-04/en{?subject,predicate,object}"; + hydra:variableRepresentation hydra:ExplicitRepresentation; + hydra:mapping _:subject, _:predicate, _:object. +_:subject hydra:variable "subject"; + hydra:property rdf:subject. +_:predicate hydra:variable "predicate"; + hydra:property rdf:predicate. +_:object hydra:variable "object"; + hydra:property rdf:object +} + dbpedia-owl:director dbpedia:Terry_Gilliam. + { + void:subset ; + a hydra:PartialCollectionView; + dcterms:title "Linked Data Fragment of DBpedia 2016-04"@en; + dcterms:description "Triple Pattern Fragment of the 'DBpedia 2016-04' dataset containing triples matching the pattern { ?o }."@en; + dcterms:source ; + hydra:totalItems "1"^^xsd:integer; + void:triples "1"^^xsd:integer; + hydra:itemsPerPage "100"^^xsd:integer; + hydra:first +} diff --git a/sparql/starring-selective-filter/7f6727e5c121ae1836858e64c653db06ee2cf1bc b/sparql/starring-selective-filter/7f6727e5c121ae1836858e64c653db06ee2cf1bc new file mode 100644 index 00000000..2c9cafbf --- /dev/null +++ b/sparql/starring-selective-filter/7f6727e5c121ae1836858e64c653db06ee2cf1bc @@ -0,0 +1,46 @@ +# Query: predicate=http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23label&object=%22Brad%20Pitt%22%40en +# Hashed IRI: https://fragments.dbpedia.org/2016-04/en?predicate=http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23label&object=%22Brad%20Pitt%22%40en +# Content-type: application/trig;charset=utf-8 +@prefix rdf: . +@prefix rdfs: . +@prefix owl: . +@prefix skos: . +@prefix xsd: . +@prefix dc: . +@prefix dcterms: . +@prefix dc11: . +@prefix foaf: . +@prefix geo: . +@prefix dbpedia: . +@prefix dbpedia-owl: . +@prefix dbpprop: . +@prefix hydra: . +@prefix void: . + + { + foaf:primaryTopic . + hydra:member . + a void:Dataset, hydra:Collection; + void:subset ; + hydra:search _:triplePattern. +_:triplePattern hydra:template "https://fragments.dbpedia.org/2016-04/en{?subject,predicate,object}"; + hydra:variableRepresentation hydra:ExplicitRepresentation; + hydra:mapping _:subject, _:predicate, _:object. +_:subject hydra:variable "subject"; + hydra:property rdf:subject. +_:predicate hydra:variable "predicate"; + hydra:property rdf:predicate. +_:object hydra:variable "object"; + hydra:property rdf:object. + void:subset ; + a hydra:PartialCollectionView; + dcterms:title "Linked Data Fragment of DBpedia 2016-04"@en; + dcterms:description "Triple Pattern Fragment of the 'DBpedia 2016-04' dataset containing triples matching the pattern { ?s \"Brad Pitt\"@en }."@en; + dcterms:source ; + hydra:totalItems "2"^^xsd:integer; + void:triples "2"^^xsd:integer; + hydra:itemsPerPage "100"^^xsd:integer; + hydra:first +} +dbpedia:Brad_Pitt rdfs:label "Brad Pitt"@en. + rdfs:label "Brad Pitt"@en. diff --git a/sparql/starring-selective-filter/b3362f21853ce86423e2979ed9f18cfd1672cbc9 b/sparql/starring-selective-filter/b3362f21853ce86423e2979ed9f18cfd1672cbc9 new file mode 100644 index 00000000..2404fb4a --- /dev/null +++ b/sparql/starring-selective-filter/b3362f21853ce86423e2979ed9f18cfd1672cbc9 @@ -0,0 +1,112 @@ +# Query: null +# Hashed IRI: https://fragments.dbpedia.org/2016-04/en +# Content-type: application/trig;charset=utf-8 +@prefix rdf: . +@prefix rdfs: . +@prefix owl: . +@prefix skos: . +@prefix xsd: . +@prefix dc: . +@prefix dcterms: . +@prefix dc11: . +@prefix foaf: . +@prefix geo: . +@prefix dbpedia: . +@prefix dbpedia-owl: . +@prefix dbpprop: . +@prefix hydra: . +@prefix void: . + + { + foaf:primaryTopic . + hydra:member . + a void:Dataset, hydra:Collection; + void:subset ; + hydra:search _:triplePattern. +_:triplePattern hydra:template "https://fragments.dbpedia.org/2016-04/en{?subject,predicate,object}"; + hydra:variableRepresentation hydra:ExplicitRepresentation; + hydra:mapping _:subject, _:predicate, _:object. +_:subject hydra:variable "subject"; + hydra:property rdf:subject. +_:predicate hydra:variable "predicate"; + hydra:property rdf:predicate. +_:object hydra:variable "object"; + hydra:property rdf:object. + void:subset ; + a hydra:PartialCollectionView; + dcterms:title "Linked Data Fragment of DBpedia 2016-04"@en; + dcterms:description "Triple Pattern Fragment of the 'DBpedia 2016-04' dataset containing triples matching the pattern { ?s ?p ?o }."@en; + dcterms:source ; + hydra:totalItems "1040358853"^^xsd:integer; + void:triples "1040358853"^^xsd:integer; + hydra:itemsPerPage "100"^^xsd:integer; + hydra:first ; + hydra:next +} + dbpprop:date "1899-05-06"^^xsd:date; + dbpprop:isCitedBy ; + dbpprop:newspaper "Biloxi Daily Herald"; + dbpprop:page "6"; + dbpprop:title "A New System of Weights and Measures"; + dbpprop:url . + dbpprop:accessdate "2010-04-21"^^xsd:date; + dbpprop:date "1937-01-04"^^xsd:date; + dbpprop:format "PDF"; + dbpprop:isCitedBy dbpedia:List_of_Attorneys_General_of_Wisconsin; + dbpprop:location "Oshkosh, Wisconsin"; + dbpprop:page "6"; + dbpprop:title "New Administrations Started"; + dbpprop:url ; + dbpprop:work "Oshkosh Daily Northwestern". + dbpprop:accessdate "2010-04-21"^^xsd:date; + dbpprop:date "1939-01-02"^^xsd:date; + dbpprop:format "PDF"; + dbpprop:isCitedBy dbpedia:List_of_Attorneys_General_of_Wisconsin; + dbpprop:location "Sheboygan, Wisconsin"; + dbpprop:page "1"; + dbpprop:title "Gov. Julius P. Heil Takes Office"; + dbpprop:url ; + dbpprop:work "The Sheboygan Press". + dbpprop:accessdate "2010-04-21"^^xsd:date; + dbpprop:date "1933-01-03"^^xsd:date; + dbpprop:format "PDF"; + dbpprop:isCitedBy dbpedia:List_of_Attorneys_General_of_Wisconsin; + dbpprop:location "Madison, Wisconsin"; + dbpprop:page "1"; + dbpprop:title "Governor Takes Oath Amid Cheers of 5,000"; + dbpprop:url ; + dbpprop:work "Wisconsin State Journal". + dbpprop:accessdate "2010-04-21"^^xsd:date; + dbpprop:date "1951-01-02"^^xsd:date; + dbpprop:format "PDF"; + dbpprop:isCitedBy dbpedia:List_of_Attorneys_General_of_Wisconsin; + dbpprop:location "Madison, Wisconsin"; + dbpprop:page "2"; + dbpprop:title "Highlights of Inauguration Ceremony as Five State Republican Officials Take Oaths in Capitol"; + dbpprop:url ; + dbpprop:work "Wisconsin State Journal". + dbpprop:date "Summer 1998"; + dbpprop:first "Raymond"; + dbpprop:format "DjVu"; + dbpprop:isCitedBy dbpedia:Seventh-day_Adventist_Commentary_Reference_Series; + dbpprop:journal dbpedia:Adventist_Heritage; + dbpprop:last "Cottrell"; + dbpprop:number "1"; + dbpprop:pages "26–34"; + dbpprop:publisher "LLU"; + dbpprop:title "The Story of the Bible Commentary"; + dbpprop:url ; + dbpprop:volume "18". + dbpprop:accessdate "2007-11-05"^^xsd:date, "2007-11-09"^^xsd:date, "2007-11-25"^^xsd:date, "2007-11-30"^^xsd:date; + dbpprop:authorLink "Albion P. Howe"; + dbpprop:authorlink "Henry Jackson Hunt", "Quincy Adams Gilmore"; + dbpprop:first "A.P.", "Charles R.", "Henry J.", "John W.", "Q.A.", "Robert N."; + dbpprop:isCitedBy dbpedia:Battery_Rodgers, dbpedia:Fort_Sumter, dbpedia:Rodman_gun, dbpedia:Siege_artillery_in_the_American_Civil_War; + dbpprop:issue "2", "II", "Part I"; + dbpprop:journal "The War of the Rebellion: A Compilation of the Official Records of the Union and Confederate Armies, Series I."; + dbpprop:last "Gilmore", "Howe", "Hunt", "Scott", "Suter", "Turner"; + dbpprop:location "Washington, D.C."; + dbpprop:pages "117–119", "148–65", "212–225", "212–25", "3–40", "650", "659–662", "883–897"; + dbpprop:publisher "Government Printing Office"; + dbpprop:ref "harv"; + dbpprop:title "--05-17"^^xsd:gMonthDay, "--06-01"^^xsd:gMonthDay, "--06-08"^^xsd:gMonthDay, "--08-12"^^xsd:gMonthDay, "--10-20"^^xsd:gMonthDay, "Report of Maj. Gen. Quincy A. Gilmore, U.S. Army, Commanding Department of the South with Congratulatory Orders.", "Reports", "Reports.". diff --git a/sparql/starring-selective-filter/c48c477f42d607f67fdb050e4197eb3f18d2ab0b b/sparql/starring-selective-filter/c48c477f42d607f67fdb050e4197eb3f18d2ab0b new file mode 100644 index 00000000..39b20e5a --- /dev/null +++ b/sparql/starring-selective-filter/c48c477f42d607f67fdb050e4197eb3f18d2ab0b @@ -0,0 +1,79 @@ +# Query: predicate=http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23label +# Hashed IRI: https://fragments.dbpedia.org/2016-04/en?predicate=http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23label +# Content-type: application/trig;charset=utf-8 +@prefix rdf: . +@prefix rdfs: . +@prefix owl: . +@prefix skos: . +@prefix xsd: . +@prefix dc: . +@prefix dcterms: . +@prefix dc11: . +@prefix foaf: . +@prefix geo: . +@prefix dbpedia: . +@prefix dbpedia-owl: . +@prefix dbpprop: . +@prefix hydra: . +@prefix void: . + + { + foaf:primaryTopic . + hydra:member . + a void:Dataset, hydra:Collection; + void:subset ; + hydra:search _:triplePattern. +_:triplePattern hydra:template "https://fragments.dbpedia.org/2016-04/en{?subject,predicate,object}"; + hydra:variableRepresentation hydra:ExplicitRepresentation; + hydra:mapping _:subject, _:predicate, _:object. +_:subject hydra:variable "subject"; + hydra:property rdf:subject. +_:predicate hydra:variable "predicate"; + hydra:property rdf:predicate. +_:object hydra:variable "object"; + hydra:property rdf:object. + void:subset ; + a hydra:PartialCollectionView; + dcterms:title "Linked Data Fragment of DBpedia 2016-04"@en; + dcterms:description "Triple Pattern Fragment of the 'DBpedia 2016-04' dataset containing triples matching the pattern { ?s ?o }."@en; + dcterms:source ; + hydra:totalItems "20013903"^^xsd:integer; + void:triples "20013903"^^xsd:integer; + hydra:itemsPerPage "100"^^xsd:integer; + hydra:first ; + hydra:next +} + rdfs:label "centimetre"@en. + rdfs:label "cubicCentimetre"@en. + rdfs:label "cubicKilometre"@en. + rdfs:label "cubicMetre"@en. + rdfs:label "cubicMetrePerSecond"@en. + rdfs:label "day"@en. + rdfs:label "engineConfiguration"@en. + rdfs:label "fuelType"@en. + rdfs:label "gramPerKilometre"@en. + rdfs:label "hour"@en. + rdfs:label "inhabitantsPerSquareKilometre"@en. + rdfs:label "kelvin"@en. + rdfs:label "kilogram"@en. + rdfs:label "kilogramPerCubicMetre"@en. + rdfs:label "kilometre"@en. + rdfs:label "kilometrePerHour"@en. + rdfs:label "kilometrePerSecond"@en. + rdfs:label "kilowatt"@en. + rdfs:label "litre"@en. + rdfs:label "megabyte"@en. + rdfs:label "metre"@en. + rdfs:label "millimetre"@en. + rdfs:label "minute"@en. + rdfs:label "newtonMetre"@en. + rdfs:label "second"@en. + rdfs:label "squareKilometre"@en. + rdfs:label "squareMetre"@en. + rdfs:label "valvetrain"@en. +dbpedia-owl:AcademicConference rdfs:label "academic conference"@en, "conférence scientifique"@fr, "congresso scientifico"@it, "konferencja naukowa"@pl, "wetenschappelijke conferentie"@nl, "wissenschaftliche Konferenz"@de, "навуковая канферэнцыя"@be, "научная конференция"@ru, "学術会議"@ja. +dbpedia-owl:AcademicJournal rdfs:label "Wissenschaftliche Fachzeitschrift"@de, "academic journal"@en, "czasopismo naukowe"@pl, "giornale accademico"@it, "iris acadúil"@ga, "journal académique"@fr, "revista académica"@gl, "wetenschappelijk tijdschrift"@nl, "ακαδημαϊκό περιοδικό"@el, "学術雑誌"@ja, "學術期刊"@zh, "학술지"@ko. +dbpedia-owl:Activity rdfs:label "Aktivität"@de, "actividad"@es, "actividade"@gl, "activiteit"@nl, "activity"@en, "activité"@fr, "aktywność"@pl, "atividade"@pt, "attività"@it, "gníomhaíocht"@ga, "Δραστηριότητα"@el, "活動"@ja, "活動"@zh, "활동"@ko. +dbpedia-owl:Actor rdfs:label "Schauspieler"@de, "acteur"@fr, "acteur"@nl, "actor"@en, "actor"@es, "actor"@gl, "aisteoir"@ga, "aktor"@pl, "aktore"@eu, "ator"@pt, "attore"@it, "ηθοποιός"@el, "俳優"@ja, "演員"@zh, "영화인"@ko. +dbpedia-owl:AdministrativeRegion rdfs:label "Verwaltungsregion"@de, "administrative region"@en, "bestuurlijk gebied"@nl, "regione amministrativa"@it, "rexión administrativa"@gl, "région administrative"@fr, "réigiún riaracháin"@ga, "διοικητική περιφέρεια"@el, "行政区画"@ja, "行政區"@zh, "관리 지역"@ko. +dbpedia-owl:AdultActor rdfs:label "acteur porno/acteur adulte"@fr, "actor porno"@es, "actor porno"@gl, "adult (pornographic) actor"@en, "aisteoir i scannáin pornagrafaíochta"@ga, "aktor pornograficzny"@pl, "ator adulto"@pt, "attore porno"@it, "pornografisch acteur"@nl, "pornographischer Schauspieler"@de, "ενήλικας (πορνογραφικός) ηθοποιός"@el. diff --git a/sparql/starring-selective-filter/c6c5d3c7b70d7e7fdcfbd42278f44033b3927363 b/sparql/starring-selective-filter/c6c5d3c7b70d7e7fdcfbd42278f44033b3927363 new file mode 100644 index 00000000..0098e9e4 --- /dev/null +++ b/sparql/starring-selective-filter/c6c5d3c7b70d7e7fdcfbd42278f44033b3927363 @@ -0,0 +1,45 @@ +# Query: subject=http%3A%2F%2Fdbpedia.org%2Fresource%2FTerry_Gilliam&predicate=http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23label +# Hashed IRI: https://fragments.dbpedia.org/2016-04/en?subject=http%3A%2F%2Fdbpedia.org%2Fresource%2FTerry_Gilliam&predicate=http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23label +# Content-type: application/trig;charset=utf-8 +@prefix rdf: . +@prefix rdfs: . +@prefix owl: . +@prefix skos: . +@prefix xsd: . +@prefix dc: . +@prefix dcterms: . +@prefix dc11: . +@prefix foaf: . +@prefix geo: . +@prefix dbpedia: . +@prefix dbpedia-owl: . +@prefix dbpprop: . +@prefix hydra: . +@prefix void: . + + { + foaf:primaryTopic . + hydra:member . + a void:Dataset, hydra:Collection; + void:subset ; + hydra:search _:triplePattern. +_:triplePattern hydra:template "https://fragments.dbpedia.org/2016-04/en{?subject,predicate,object}"; + hydra:variableRepresentation hydra:ExplicitRepresentation; + hydra:mapping _:subject, _:predicate, _:object. +_:subject hydra:variable "subject"; + hydra:property rdf:subject. +_:predicate hydra:variable "predicate"; + hydra:property rdf:predicate. +_:object hydra:variable "object"; + hydra:property rdf:object. + void:subset ; + a hydra:PartialCollectionView; + dcterms:title "Linked Data Fragment of DBpedia 2016-04"@en; + dcterms:description "Triple Pattern Fragment of the 'DBpedia 2016-04' dataset containing triples matching the pattern { ?o }."@en; + dcterms:source ; + hydra:totalItems "1"^^xsd:integer; + void:triples "1"^^xsd:integer; + hydra:itemsPerPage "100"^^xsd:integer; + hydra:first +} +dbpedia:Terry_Gilliam rdfs:label "Terry Gilliam"@en. diff --git a/sparql/starring-selective-filter/dab17ca6ce4a739481da059d843916f26d9053ea b/sparql/starring-selective-filter/dab17ca6ce4a739481da059d843916f26d9053ea new file mode 100644 index 00000000..e20b9d8a --- /dev/null +++ b/sparql/starring-selective-filter/dab17ca6ce4a739481da059d843916f26d9053ea @@ -0,0 +1,44 @@ +# Query: subject=http%3A%2F%2Fdbpedia.org%2Fresource%2F12_Monkeys&predicate=http%3A%2F%2Fdbpedia.org%2Fontology%2Fstarring&object=http%3A%2F%2Fwikidata.dbpedia.org%2Fresource%2FQ35332 +# Hashed IRI: https://fragments.dbpedia.org/2016-04/en?subject=http%3A%2F%2Fdbpedia.org%2Fresource%2F12_Monkeys&predicate=http%3A%2F%2Fdbpedia.org%2Fontology%2Fstarring&object=http%3A%2F%2Fwikidata.dbpedia.org%2Fresource%2FQ35332 +# Content-type: application/trig;charset=utf-8 +@prefix rdf: . +@prefix rdfs: . +@prefix owl: . +@prefix skos: . +@prefix xsd: . +@prefix dc: . +@prefix dcterms: . +@prefix dc11: . +@prefix foaf: . +@prefix geo: . +@prefix dbpedia: . +@prefix dbpedia-owl: . +@prefix dbpprop: . +@prefix hydra: . +@prefix void: . + + { + foaf:primaryTopic . + hydra:member . + a void:Dataset, hydra:Collection; + void:subset ; + hydra:search _:triplePattern. +_:triplePattern hydra:template "https://fragments.dbpedia.org/2016-04/en{?subject,predicate,object}"; + hydra:variableRepresentation hydra:ExplicitRepresentation; + hydra:mapping _:subject, _:predicate, _:object. +_:subject hydra:variable "subject"; + hydra:property rdf:subject. +_:predicate hydra:variable "predicate"; + hydra:property rdf:predicate. +_:object hydra:variable "object"; + hydra:property rdf:object. + void:subset ; + a hydra:PartialCollectionView; + dcterms:title "Linked Data Fragment of DBpedia 2016-04"@en; + dcterms:description "Triple Pattern Fragment of the 'DBpedia 2016-04' dataset containing triples matching the pattern { }."@en; + dcterms:source ; + hydra:totalItems "0"^^xsd:integer; + void:triples "0"^^xsd:integer; + hydra:itemsPerPage "100"^^xsd:integer; + hydra:first +} diff --git a/sparql/starring-selective-filter/f1237015b4c06b398221fe6b7d0c7175e266656b b/sparql/starring-selective-filter/f1237015b4c06b398221fe6b7d0c7175e266656b new file mode 100644 index 00000000..0eb30890 --- /dev/null +++ b/sparql/starring-selective-filter/f1237015b4c06b398221fe6b7d0c7175e266656b @@ -0,0 +1,45 @@ +# Query: subject=http%3A%2F%2Fdbpedia.org%2Fresource%2F12_Monkeys&predicate=http%3A%2F%2Fdbpedia.org%2Fontology%2Fstarring&object=http%3A%2F%2Fdbpedia.org%2Fresource%2FBrad_Pitt +# Hashed IRI: https://fragments.dbpedia.org/2016-04/en?subject=http%3A%2F%2Fdbpedia.org%2Fresource%2F12_Monkeys&predicate=http%3A%2F%2Fdbpedia.org%2Fontology%2Fstarring&object=http%3A%2F%2Fdbpedia.org%2Fresource%2FBrad_Pitt +# Content-type: application/trig;charset=utf-8 +@prefix rdf: . +@prefix rdfs: . +@prefix owl: . +@prefix skos: . +@prefix xsd: . +@prefix dc: . +@prefix dcterms: . +@prefix dc11: . +@prefix foaf: . +@prefix geo: . +@prefix dbpedia: . +@prefix dbpedia-owl: . +@prefix dbpprop: . +@prefix hydra: . +@prefix void: . + + { + foaf:primaryTopic . + hydra:member . + a void:Dataset, hydra:Collection; + void:subset ; + hydra:search _:triplePattern. +_:triplePattern hydra:template "https://fragments.dbpedia.org/2016-04/en{?subject,predicate,object}"; + hydra:variableRepresentation hydra:ExplicitRepresentation; + hydra:mapping _:subject, _:predicate, _:object. +_:subject hydra:variable "subject"; + hydra:property rdf:subject. +_:predicate hydra:variable "predicate"; + hydra:property rdf:predicate. +_:object hydra:variable "object"; + hydra:property rdf:object. + void:subset ; + a hydra:PartialCollectionView; + dcterms:title "Linked Data Fragment of DBpedia 2016-04"@en; + dcterms:description "Triple Pattern Fragment of the 'DBpedia 2016-04' dataset containing triples matching the pattern { }."@en; + dcterms:source ; + hydra:totalItems "1"^^xsd:integer; + void:triples "1"^^xsd:integer; + hydra:itemsPerPage "100"^^xsd:integer; + hydra:first +} + dbpedia-owl:starring dbpedia:Brad_Pitt. diff --git a/sparql/starring-selective-filter/result.srj b/sparql/starring-selective-filter/result.srj new file mode 100644 index 00000000..c31377f1 --- /dev/null +++ b/sparql/starring-selective-filter/result.srj @@ -0,0 +1,29 @@ +{ + "head": { + "vars": [ + "movie", + "title", + "name" + ] + }, + "results": { + "bindings": [ + { + "name": { + "value": "Terry Gilliam", + "type": "literal", + "xml:lang": "en" + }, + "title": { + "value": "12 Monkeys", + "type": "literal", + "xml:lang": "en" + }, + "movie": { + "value": "http://dbpedia.org/resource/12_Monkeys", + "type": "uri" + } + } + ] + } +} \ No newline at end of file