Re: [dxwg] Profile Composition and Languages

@VladimirAlexiev 
Thanks for your feedback. Here a late reaction from me...
> The Expected RFC states one such mechanism for XML schemas:

>> the elements in namespace urn:example:namespaces:ns1 must conform to XML schema http://example.com/schema/schema-1 and the elements in namespace urn:example:namespaces:ns2 must conform to XML schema http://example.com/schema/schema-2
>> It is unclear how applicable/useful is this separation by namespace. Eg NIEM includles a lot more advanced mechanisms for composing XML schemas.

> It is unclear whether such separation by namespace is applicable/useful for RDF.

This draft is definitely not state-of-the-art any more. It's sort of mixes profiles and schemas and doesn't really cater for the media type independence we're aiming at when discussing profiles.
You mention SHACL and JSON-LD Frames as possibilities for profile languages (what about JSON Schema?). In my terminology SHACL, ShEx, JSON Schema and others of that ilk are not _profile_ languages but _schema_ languages since they are geared at describing and validating data described using a specific technology (RDF, JSON etc.) but cannot be used to validate the same data if it's published in another format. One example from our place: As a national library we serve other libraries around the world and they expect the data to be available in MARC. Our data is availalble in two serialisations: MARC 21 (based  on ISO 2709) and MARC-XML. The way MARC-XML is built, the semantics are exactly the same as in ISO MARC and you can convert losslessly between the two formats, but there it ends. Still we want to be able to describe how the content is organised, which fields we use etc. independently of whether it's published in ISO MARC or MARC XML. So that would be a task for the profile. We then can create an XML schema to describe our version of MARC XML and whatever-you-can-use-to-validate-ISO-2709 to describe the ISO MARC version.
TL;DR
Profiles != Schemas
Profile : media type independent
Schema : technology dependent (since you can describe all RDF serialisations with SHACL independent of media type...)

-- 
GitHub Notification of comment by larsgsvensson
Please view or discuss this issue at https://github.com/w3c/dxwg/issues/162#issuecomment-375391948 using your GitHub account

Received on Thursday, 22 March 2018 17:30:20 UTC