Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions jargon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,8 @@ urlencoded
iglob
RequestException
str
fieldOfWorkList
fieldOfWorks
orgWork
orgWork
orgWork
7 changes: 7 additions & 0 deletions queries/generators/austria.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q40 AS ?country)

Expand Down Expand Up @@ -33,8 +34,14 @@ WHERE {
}
}

OPTIONAL {
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,mul" }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?orgLabel
7 changes: 7 additions & 0 deletions queries/generators/bermuda.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q23635 AS ?country)

Expand All @@ -21,8 +22,14 @@ WHERE {
MINUS { ?org wdt:P576 [] }
MINUS { ?org wdt:P1366 [] }

OPTIONAL {
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,mul" }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?orgLabel
10 changes: 9 additions & 1 deletion queries/generators/cameroon.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q1009 AS ?country)
VALUES ?type {
Expand All @@ -19,7 +20,14 @@ WHERE {
?org wdt:P17 ?country .
MINUS { ?org wdt:P576 [] }
MINUS { ?org wdt:P1366 [] }

OPTIONAL {
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,fr,mul" }
}
ORDER BY ?type ?orgLabel
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?orgLabel
7 changes: 7 additions & 0 deletions queries/generators/canada.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q16 AS ?country)

Expand All @@ -22,8 +23,14 @@ WHERE {
MINUS { ?org wdt:P1366 [] }
MINUS { ?org wdt:P582 [] }

OPTIONAL {
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,fr,mul" }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?orgLabel
7 changes: 4 additions & 3 deletions queries/generators/chile.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
?cofog
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q298 AS ?country)
{
Expand All @@ -31,12 +31,13 @@ WHERE {
MINUS { ?org wdt:P1366 [] }

OPTIONAL {
?org wdt:P9798/wdt:P279* ?cofog .
MINUS { ?cofog wdt:P279 [] }
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,mul,es". }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?orgLabel
7 changes: 7 additions & 0 deletions queries/generators/cuba.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q241 AS ?country)

Expand All @@ -21,8 +22,14 @@ WHERE {
MINUS { ?org wdt:P576 [] }
MINUS { ?org wdt:P1366 [] }

OPTIONAL {
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,es,mul" }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?orgLabel
7 changes: 7 additions & 0 deletions queries/generators/czech-republic.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q213 AS ?country)

Expand All @@ -22,8 +23,14 @@ WHERE {
MINUS { ?org wdt:P1366 [] }
MINUS { ?org wdt:P582 [] }

OPTIONAL {
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,cs,mul" }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?orgLabel
7 changes: 4 additions & 3 deletions queries/generators/denmark.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
?cofog
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q35 AS ?country)
VALUES ?type {
Expand All @@ -23,12 +23,13 @@ WHERE {
MINUS { ?org wdt:P571 ?start . FILTER (?start > NOW() ) }

OPTIONAL {
?org wdt:P9798/wdt:P279* ?cofog .
MINUS { ?cofog wdt:P279 [] }
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,da,mul". }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?topic
7 changes: 7 additions & 0 deletions queries/generators/east-timor.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q574 AS ?country)

Expand All @@ -23,8 +24,14 @@ WHERE {
MINUS { ?org wdt:P576 [] }
MINUS { ?org wdt:P1366 [] }

OPTIONAL {
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,pt,tet,mul" }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?orgLabel
7 changes: 7 additions & 0 deletions queries/generators/finland.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q33 AS ?country)
{
Expand All @@ -30,8 +31,14 @@ UNION
MINUS { ?org wdt:P576 [] }
MINUS { ?org wdt:P1366 [] }

OPTIONAL {
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,fi,sv,mul" }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?orgLabel
7 changes: 4 additions & 3 deletions queries/generators/germany.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
?cofog
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q183 AS ?country)
{
Expand Down Expand Up @@ -37,12 +37,13 @@ WHERE {
MINUS { ?org wdt:P3999 [] }

OPTIONAL {
?org wdt:P9798/wdt:P279* ?cofog .
MINUS { ?cofog wdt:P279 [] }
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,mul". }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?topic
7 changes: 4 additions & 3 deletions queries/generators/ghana.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
?cofog
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q117 AS ?country)

Expand All @@ -24,12 +24,13 @@ WHERE {
MINUS { ?org wdt:P3999 [] }

OPTIONAL {
?org wdt:P9798/wdt:P279* ?cofog .
MINUS { ?cofog wdt:P279 [] }
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,ak,mul". }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?topic
7 changes: 4 additions & 3 deletions queries/generators/greenland.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
?cofog
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q223 AS ?country)

Expand All @@ -22,12 +22,13 @@ WHERE {
MINUS { ?org wdt:P3999 [] }

OPTIONAL {
?org wdt:P9798/wdt:P279* ?cofog .
MINUS { ?cofog wdt:P279 [] }
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,kl,da,mul". }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?topic
7 changes: 7 additions & 0 deletions queries/generators/iceland.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q189 AS ?country)
VALUES ?type {
Expand All @@ -22,8 +23,14 @@ WHERE {
MINUS { ?org wdt:P1366 [] }
MINUS { ?org p:P31 ?s . ?s ps:P31 wd:Q955655 . ?s pq:P582 [] }

OPTIONAL {
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,is,mul" }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?orgLabel
7 changes: 4 additions & 3 deletions queries/generators/india.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
?cofog
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q668 AS ?country)
VALUES ?type {
Expand All @@ -22,12 +22,13 @@ WHERE {
MINUS { ?org wdt:P3999 [] }

OPTIONAL {
?org wdt:P9798/wdt:P279* ?cofog .
MINUS { ?cofog wdt:P279 [] }
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,hi,mul". }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?topic
7 changes: 7 additions & 0 deletions queries/generators/indonesia.rq
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SELECT DISTINCT
?type
?typeLabel
?country
(GROUP_CONCAT(DISTINCT ?fieldOfWork; separator=",") AS ?fieldOfWorkList)
WHERE {
BIND(wd:Q252 AS ?country)

Expand All @@ -23,8 +24,14 @@ WHERE {
MINUS { ?org wdt:P576 [] }
MINUS { ?org wdt:P1366 [] }

OPTIONAL {
?org wdt:P101 ?fieldOfWork .
# TODO: check for end date
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,id,mul" }
}
GROUP BY ?qid ?orgLabel ?orgDescription ?type ?typeLabel ?country
ORDER BY ?type ?orgLabel
Loading