query-475423379908033effffae3f71504ca3

rq turtle/ttl

List of all properties newer than the number in line 13,

split up between external identifiers and all other properties.

For the weekly summary, adjust the number in line 13 to the highest number mentioned in the last weekly summary,

run the query and paste the results into the summary.

(Note: results should hopefully be ordered, but this is not guaranteed.

In particular, it’s possible that the order flips from ascending to descending

if something about the way the query is optimized changes.)

SELECT ?identifierProperties ?otherProperties WITH { SELECT ?property ?propertyId ?label WHERE { ?property a wikibase:Property. BIND(SUBSTR(STR(?property), STRLEN(STR(wd:)) + 1) AS ?propertyId) BIND(xsd:integer(SUBSTR(?propertyId, 2)) AS ?propertyNumber) FILTER(?propertyNumber > 4721) OPTIONAL { ?property rdfs:label ?labelEn. FILTER(LANG(?labelEn) = "en") } BIND(COALESCE(?labelEn, "no label"@en) AS ?label) } ORDER BY DESC(?propertyNumber) } AS %results WITH { SELECT (GROUP_CONCAT(CONCAT("[[:d:Property:", ?propertyId, "|", ?label, "]]"); separator = ", ") AS ?identifierProperties) WHERE { INCLUDE %results. ?property wikibase:propertyType wikibase:ExternalId. } } AS %identifierProperties WITH { SELECT (GROUP_CONCAT(CONCAT("[[:d:Property:", ?propertyId, "|", ?label, "]]"); separator = ", ") AS ?otherProperties) WHERE { INCLUDE %results. MINUS { ?property wikibase:propertyType wikibase:ExternalId. } } } AS %otherProperties WHERE { INCLUDE %identifierProperties. INCLUDE %otherProperties. }

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# List of all properties newer than the number in line 13,
# split up between external identifiers and all other properties.
# For the weekly summary, adjust the number in line 13 to the highest number mentioned in the last weekly summary,
# run the query and paste the results into the summary.
# (Note: results should hopefully be ordered, but this is not guaranteed.
# In particular, it’s possible that the order flips from ascending to descending
# if something about the way the query is optimized changes.)
SELECT ?identifierProperties ?otherProperties WHERE {
   {
  SELECT (GROUP_CONCAT(CONCAT("[[:d:Property:", ?propertyId, "|", ?label, "]]"); separator = ", ") AS ?identifierProperties) WHERE {
     {
  SELECT ?property ?propertyId ?label WHERE {
    ?property a wikibase:Property.
    BIND(SUBSTR(STR(?property), STRLEN(STR(wd:)) + 1) AS ?propertyId)
    BIND(xsd:integer(SUBSTR(?propertyId, 2)) AS ?propertyNumber)
    FILTER(?propertyNumber > 4721)
    OPTIONAL {
      ?property rdfs:label ?labelEn.
      FILTER(LANG(?labelEn) = "en")
    }
    BIND(COALESCE(?labelEn, "no label"@en) AS ?label)
  }
  ORDER BY DESC(?propertyNumber)
}
    ?property wikibase:propertyType wikibase:ExternalId.
  }
}
   {
  SELECT (GROUP_CONCAT(CONCAT("[[:d:Property:", ?propertyId, "|", ?label, "]]"); separator = ", ") AS ?otherProperties) WHERE {
     {
  SELECT ?property ?propertyId ?label WHERE {
    ?property a wikibase:Property.
    BIND(SUBSTR(STR(?property), STRLEN(STR(wd:)) + 1) AS ?propertyId)
    BIND(xsd:integer(SUBSTR(?propertyId, 2)) AS ?propertyNumber)
    FILTER(?propertyNumber > 4721)
    OPTIONAL {
      ?property rdfs:label ?labelEn.
      FILTER(LANG(?labelEn) = "en")
    }
    BIND(COALESCE(?labelEn, "no label"@en) AS ?label)
  }
  ORDER BY DESC(?propertyNumber)
}
    MINUS { ?property wikibase:propertyType wikibase:ExternalId. }
  }
}
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?identifierProperties"):::projected v7("?label") v2("?labelEn") v7("?otherProperties"):::projected v3("?property") v7("?propertyId") v7("?propertyNumber") c4(["wikibase:Property"]):::iri c7(["wikibase:ExternalId"]):::iri f0[["?propertyNumber > '4721^^xsd:integer'"]] f0 --> v7 v3 --"a"--> c4 bind1[/"substring(str(?property),string-length(str('wd:')) + '1^^xsd:integer')"/] v3 --o bind1 bind1 --as--o v7 bind2[/"http://www.w3.org/2001/XMLSchema#integer(substring(?propertyId,'2^^xsd:integer'))"/] v7 --o bind2 bind2 --as--o v7 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."rdfs:label".-> v2 end bind3[/"?labelEnsno label^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>'"/] v2 --o bind3 bind3 --as--o v7 v3 --"wikibase:propertyType"--> c7 bind5[/"concat('#91;#91;:d:Property:',?propertyId,'|',?label,'#93;#93;')"/] v7 --o bind5 v7 --o bind5 bind5 --as--o v6 f6[["?propertyNumber > '4721^^xsd:integer'"]] f6 --> v7 v3 --"a"--> c4 bind7[/"substring(str(?property),string-length(str('wd:')) + '1^^xsd:integer')"/] v3 --o bind7 bind7 --as--o v7 bind8[/"http://www.w3.org/2001/XMLSchema#integer(substring(?propertyId,'2^^xsd:integer'))"/] v7 --o bind8 bind8 --as--o v7 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."rdfs:label".-> v2 end bind9[/"?labelEnsno label^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>'"/] v2 --o bind9 bind9 --as--o v7 subgraph minus10["MINUS"] style minus10 stroke-width:6px,fill:pink,stroke:red; v3 --"wikibase:propertyType"--> c7 end bind12[/"concat('#91;#91;:d:Property:',?propertyId,'|',?label,'#93;#93;')"/] v7 --o bind12 v7 --o bind12 bind12 --as--o v7