Open ulsw opened 7 years ago
I think I can answer bullets 2 & 3:
"prefLabel": { "-": "..." },
means "There are some prefLabels but they are not transmitted here"; whereas lack of prefLabel would mean "dunno"As for the motivation, @nichtich please answer. You need to describe some use cases for this.
I also think there's a risk of misinterpretation: straight JSONLD->RDF convertors starting to complain that -
is not a language, and labels like ...
being displayed to a user
The primary use case of JSKOS is to transport KOS data via JSON API (the corresponding JSKOS API is going to be specified as well, see http://api.dante.gbv.de/ for a current implementation). Applications need to know whether additional (costly) queries will result in more information or not.
null
as special value to differentiate CWA and OWA is compatible with JSON-LD and could even become official standard.en-US
, en-GB
... can all be referred to as en-
. Costly
can you give some examples of that? Eg does the above-referenced API return one prefLabel, and you need another call to get more prefLabels? At the end, the examples should go into the spec, to document the intention as queried by @ulsw
Wikidata items often include no label in a wanted language or a large number of languages
Yes, and the wikibase:labels
service implements a "language fallback": try langs in order, and return only 1 label. This is very convenient for SPARQL because it keeps the cardinality of each solution to one (less important in returning an entity). Language fallback is often needed by applications. I think it's worth adding such functionality to the API
en-US, en-GB ... can all be referred to as en-
I think should be en
(no trailing dash) because all those langMatches("en")
risk of misinterpretation
The API should return CWA markers only when requested by the client.
The API should return CWA markers only when requested by the client.
Yes, that's a good idea, especially for labels. Using null
as CWA marker however is less problematic. I is motivated by a high diversity of possible numbers of connected concepts. Some systems have many top concepts and some concepts many narrower concepts so API could put a default limit on maximum number of member elements and use null
as etcetera pattern.
Which inference tool is used? Which conclusions are drawn from what?
CWA / OWA seems to be mixed up:
In my opinion, it should be "open world statements"