xapi-ontology icon indicating copy to clipboard operation
xapi-ontology copied to clipboard

@context has many problems

Open fugu13 opened this issue 7 years ago • 5 comments

For example, account is "@type": "@id". Quoting the JSON-LD spec:

"@type": "@id" ← This means that a string value associated with [property] should be interpreted as an identifier that is an IRI

But in xAPI, account doesn't have string values.

Other properties that should have "@type": "@id" or at least some type, don't.

Some properties (and so, predicates) are defined as being what are classes in the ontology, such as verb being defined as xapi:Verb. Unlike account, which at least doesn't generate bad RDF, this generates nonsense RDF.

The JSON-LD @context is bad enough I recommend it be deleted from this repository.

fugu13 avatar Aug 30 '17 19:08 fugu13

Thanks @fugu13 . This was an early attempt to try and show a JSON-LD context with a simple statement (current version of xAPI) vs. future version where we might add a @context.

I think I created this before you submitted the ontology fixes. Rather than delete, can you make further suggestions for improving?

I think this may come in to play when talking about future technical improvements to xAPI with the IEEE TAG group.

In the meantime, I'll make the changes to account and verb and any others you pointed out above.

jhaag75 avatar Sep 19 '17 20:09 jhaag75

And keep in mind the @context should be created based on what we envision being supported in terms of JSON-LD in a future version of the spec, not the current one.

jhaag75 avatar Sep 19 '17 20:09 jhaag75

Heh, misclicked, sorry

fugu13 avatar Sep 19 '17 20:09 fugu13

I think working on the @context is a good idea. But the known-flawed @context should be clearly separated from the intended-for-use things in the repository.

fugu13 avatar Sep 19 '17 20:09 fugu13

@fugu13 I tried my hand at a context to go along with the ontology I posted on #7. It's mostly complete (I don't think I've done extensions yet), but would probably be best split into multiple contexts. You can find it here, and that gist is public so you can just plug the raw uri into the Playground.

milt avatar May 29 '19 21:05 milt