programming language (E55)

From Wikidata
Jump to navigation Jump to search
language codelabeldescriptionaliasesedit
enprogramming languagesimple schema for programming languageedit
frlangage de programmationedit
jaプログラム言語プログラム言語を記述するための簡単なスキーマedit
ptlinguagem de programaçãoedit
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>

#test data:  SELECT * WHERE { ?item wdt:P31 wd:Q9143 . } LIMIT 10

start = @<programminglanguage>

<programminglanguage> EXTRA p:P31 {
  (p:P31 @<#P31_instance_of_programminglanguage>|p:P31 @<#P279_subclass_of_programminglanguage>)+;
  p:P178 @<#P178_developer>*;
  p:P3966 @<#P3966_paradigm>*;
  p:P577 @<#P577_publication_date>*;
  p:P856 @<#P856_website>*;
}

<#P31_instance_of_programminglanguage> {
    ps:P31 @<#wd_programming_language> ;
}

<#P279_subclass_of_programminglanguage> {
    (ps:P279 @<#wd_programming_language> ; ps:P279 IRI *) |
    (ps:P279 @<#P279_subclass_of_programminglanguage>; ps:P279 IRI *)
}

<#wd_programming_language> [
  wd:Q9143  # Q9143 = programming language
]

<#P178_developer> {
  ps:P178 IRI;
  pq:P580 xsd:dateTime? ;
  pq:P582 xsd:dateTime? ;
}

<#P3966_paradigm> {
    ps:P3966 EXTRA p:P31 EXTRA p:P279  {
              (p:P31 @<#Programming_paradigm> | p:P279 @<#Programming_paradigm> );

           } ;
}

<#Programming_paradigm> {
    ps:P31 [wd:Q188267] # programming paradigm ;
}
  

<#P577_publication_date> {
  ps:P577 LITERAL;
}

<#P856_website> {
  ps:P856 IRI;
}