fnielsen / ordia

Wikidata lexemes presentations
https://ordia.toolforge.org
Apache License 2.0
24 stars 13 forks source link

Add time period (P2348) to lexemeSparql in l.html #162

Open Daniel-Mietchen opened 1 year ago

Daniel-Mietchen commented 1 year ago

Example: https://ordia.toolforge.org/L704983

Background: https://www.wikidata.org/w/index.php?title=Topic:Xdjb0agvg0o7ltrd&topic_showPostId=xdjb57apwea1lj5n#flow-post-xdjb57apwea1lj5n .

Draft query:

SELECT DISTINCT
  ?description 
  (?valueLabel AS ?value_) 
WHERE {
  VALUES ?lexeme { wd:L704983 }
  {
    BIND(33 AS ?order)
    BIND("Time period" AS ?description)
    ?lexeme p:P2348 ?value_statement .
    ?value_statement ps:P2348 ?value .
    ?value rdfs:label ?valueLabel .
    FILTER (LANG(?valueLabel) = 'en')
  }
}
ORDER BY ?order
situx commented 1 year ago

Some background on this for the Sumerian language:

In Ordia I think it would be sufficient to display time periods in one row, but they should be linked to the QIDs of the time periods.

I would be in favor of adding a profile type for time periods. I think it would be a welcome addition at least for the domain of cuneiform languages, but possibly also for many others.