@jenniferplusplus @trwnh
But your application probably only cares about or understands a subset of all the terms in use and it makes sense to use a schema to rigorously validate the things you support and ignore the rest.
tetron@hachyderm.io
Posts
-
Hang on, I think attaching semantics to schemas, rather than data, solves 100% of the problems with both semantics and schemas. -
Hang on, I think attaching semantics to schemas, rather than data, solves 100% of the problems with both semantics and schemas.@jenniferplusplus @trwnh
So the problem the semantic stuff is trying to solve is how to have an extensible standard without causing chaos, e.g. if two different implementations decide to add a field called "grilledCheese" but actually each one uses it to mean different things with different structure. Then the semantic markup lets you tell them apart. -
Hang on, I think attaching semantics to schemas, rather than data, solves 100% of the problems with both semantics and schemas.@jenniferplusplus
I think you want something like a json-ld context, which describes how json fields map to semantic nodes without necessarily specifying a schema, but even then it is hard to avoid asserting schema-like details such as whether a field takes a single value or an array of values.But ultimately it is a problem for the schema design, because common anti patterns like reusing the same field name to mean different things in different contexts make it challenging to assign semantics.
-
Hang on, I think attaching semantics to schemas, rather than data, solves 100% of the problems with both semantics and schemas.You might find this interesting:
GitHub - common-workflow-language/schema_salad: Semantic Annotations for Linked Avro Data
Semantic Annotations for Linked Avro Data. Contribute to common-workflow-language/schema_salad development by creating an account on GitHub.
GitHub (github.com)
Basically everything defined in the schema has a corresponding semantic node, documents are written in YAML but have a corresponding rdf representation, and robust support for including fields outside the core vocabulary in an unambiguous way