query-8a7b8499efab87b53ba3b4b1cb451b6d

rq turtle/ttl

Filter for most common forms of CC0, CC-by and CC-by-SA licenses SELECT DISTINCT ?paper WHERE { ?paper wdt:P31 wd:Q13442814; wdt:P31 wd:Q7318358; wdt:P921 ?subject; wdt:P1476 ?title. {?paper wdt:P275 wd:Q6938433 } #CC0 UNION {?paper wdt:P275 wd:Q6905323} UNION {?paper wdt:P31 wd:Q20007257} UNION {?paper wdt:P31 wd:Q14947546} UNION {?paper wdt:P31 wd:Q18810333} UNION {?paper wdt:P31 wd:Q19125117} ##CC-by, CC-by 4.0, CC-by 3.0, CC-by 2.5, CC-by 2.0 UNION {?paper wdt:P31 wd:Q6905942} UNION {?paper wdt:P31 wd:Q18199165} UNION {?paper wdt:P31 wd:Q14946043} UNION {?paper wdt:P31 wd:Q19113751} UNION {?paper wdt:P31 wd:Q19068220} ##CC-by-SA, CC-by-SA 4.0, CC-by-SA 3.0, CC-by-SA 2.5, CC-by-SA 2.0
?subject wdt:P1995 ?spec. ?spec wdt:P361* wd:Q788926 }

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#Filter for most common forms of CC0, CC-by and CC-by-SA licenses
SELECT DISTINCT ?paper
WHERE 
      {
      ?paper wdt:P31 wd:Q13442814;
             wdt:P31 wd:Q7318358;
             wdt:P921 ?subject;
             wdt:P1476 ?title.
       {?paper wdt:P275 wd:Q6938433 } #CC0
        UNION {?paper wdt:P275 wd:Q6905323} UNION {?paper wdt:P31 wd:Q20007257} 
        UNION {?paper wdt:P31 wd:Q14947546} UNION {?paper wdt:P31 wd:Q18810333} UNION {?paper wdt:P31 wd:Q19125117} 
        ##CC-by, CC-by 4.0, CC-by 3.0, CC-by 2.5, CC-by 2.0
        UNION {?paper wdt:P31 wd:Q6905942} UNION {?paper wdt:P31 wd:Q18199165} 
        UNION {?paper wdt:P31 wd:Q14946043} UNION {?paper wdt:P31 wd:Q19113751} UNION {?paper wdt:P31 wd:Q19068220} 
        ##CC-by-SA, CC-by-SA 4.0, CC-by-SA 3.0, CC-by-SA 2.5, CC-by-SA 2.0    
      ?subject wdt:P1995 ?spec.
      ?spec wdt:P361* wd:Q788926
      }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?paper"):::projected v4("?spec") v2("?subject") v3("?title") c11(["wd:Q18810333"]):::iri c13(["wd:Q6905942"]):::iri c8(["wd:Q6905323"]):::iri c12(["wd:Q19125117"]):::iri c17(["wd:Q19068220"]):::iri c3(["wd:Q7318358"]):::iri c9(["wd:Q20007257"]):::iri c20(["wd:Q788926"]):::iri c16(["wd:Q19113751"]):::iri c7(["wd:Q6938433"]):::iri c2(["wd:Q13442814"]):::iri c15(["wd:Q14946043"]):::iri c14(["wd:Q18199165"]):::iri c10(["wd:Q14947546"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P31"--> c3 v1 --"wdt:P921"--> v2 v1 --"wdt:P1476"--> v3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; subgraph union4[" Union "] subgraph union4l[" "] style union4l fill:#abf,stroke-dasharray: 3 3; subgraph union5[" Union "] subgraph union5l[" "] style union5l fill:#abf,stroke-dasharray: 3 3; subgraph union6[" Union "] subgraph union6l[" "] style union6l fill:#abf,stroke-dasharray: 3 3; subgraph union7[" Union "] subgraph union7l[" "] style union7l fill:#abf,stroke-dasharray: 3 3; subgraph union8[" Union "] subgraph union8l[" "] style union8l fill:#abf,stroke-dasharray: 3 3; subgraph union9[" Union "] subgraph union9l[" "] style union9l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c17 end subgraph union9r[" "] style union9r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c16 end union9r <== or ==> union9l end end subgraph union8r[" "] style union8r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c15 end union8r <== or ==> union8l end end subgraph union7r[" "] style union7r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c14 end union7r <== or ==> union7l end end subgraph union6r[" "] style union6r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c13 end union6r <== or ==> union6l end end subgraph union5r[" "] style union5r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c12 end union5r <== or ==> union5l end end subgraph union4r[" "] style union4r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c11 end union4r <== or ==> union4l end end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c10 end union3r <== or ==> union3l end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c9 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P275"--> c8 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P275"--> c7 end union0r <== or ==> union0l end v2 --"wdt:P1995"--> v4 v4 --"wdt:P361"--> c20