Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to represent references to TextResources #478

Open
tomkxy opened this issue Jul 16, 2021 · 9 comments
Open

How to represent references to TextResources #478

tomkxy opened this issue Jul 16, 2021 · 9 comments
Labels
enhancement ticket proposing an improvement, extension of exisitng or new features
Milestone

Comments

@tomkxy
Copy link

tomkxy commented Jul 16, 2021

In the MDP project, we need to represent "links" to reference files. I know about the sample property which does not fit here. What is the most and easiest was to represent that in IDS?

@HaydarAk
Copy link

Hi!

Can you elaborate, what we need to represent "links" to reference files means ? Something directly related to the resource ?

We have some relations ids:Resources modeled:

  • ids:variant and ids:sample: As the names suggest, these properties can be used to refer to variants of resources and samples / snippets. Both properties point to ids:Resource .
  • ids:contentStandard & ids:representationStandard with some IRI as range: Can be used to refer to some kind of document, which describes the standard the ids:Resource / ids:Representation conforms to.
  • the ids:Contract class can refer to contract-related resources via ids:contractAnnex (range ids:Resource) & ids:contractDocument (range ids:TextResource).

You could also have the file represented as an additional artifact for the given Resource.

@tomkxy
Copy link
Author

tomkxy commented Jul 19, 2021

Hi Haydar,

yes it is directly related to the resources. Those are files which provide additional context for the resources and are required or helpful to understand resource content. ids:sample is known to me, but doesn't really fit. I would expect there sample content files. So far, I interpreted contentStandard and representationStandard rather for things like schema file. However, they could fit. Could you please elaborate on the difference between contentStandard and representationStandard?
Let's assume I have a JSON schema file, I would like to attach to the resource. What would be the appropriate property?

@HaydarAk
Copy link

HaydarAk commented Jul 19, 2021

Could you please elaborate on the difference between contentStandard and representationStandard?

As you may know, a ids:Resource may contain multiple ids:Representations.
A contentStandard covers the resource as a whole while representationStandard is more related to a concrete representation. E.g., JSON/XML schema should be refered to via representationStandard because they are related to the given ids:Representation. Even if there is only one ids:Representation. This somestimes leads to complementary information between the mediaType and representationStandard property. Think of a scenario, where you want to share a RDF/Turtle file.
There is a IANA media type for turtle, but you could also provide the W3C turtle spec as a representationStandard.
A valid but trivial example :)

The contentStandard a bit more like a general purpose property used to describe the resoruce as a whole. E.g., conformance to some regulations or the content is related to some kind of standard which is representation agnostic. Although I am not an expert in spatial data, I'd say that one should refer to the geodetic reference system (e.g., WGS84) via the contentStandard.
How the data is shared (JSON, XML, SQL Dump) is surely related to the contentStandard but a XML file with WGS84 coordinates is on high level similar to a JSON file with WGS84 coordinates.

@tomkxy
Copy link
Author

tomkxy commented Jul 19, 2021

Thanks. Based on that input, I would model the schema file using the representationStandard property and would use contentStandard to store any additional contextual file information. The field is of range anyURI. Would it work in combination with the Java classes if I would reference a TextResource through this property?

@HaydarAk
Copy link

HaydarAk commented Jul 19, 2021

The field is of range anyURI. Would it work in combination with the Java classes if I would reference a TextResource through this property?

Should be. xsd:anyURI maps to a corresponding URI representation in Java. As far as I know, the java standard URI class is used (java.net.URI). You can provide any kind of IRI which may also be a reference to a ids:TextResource :)

@clange
Copy link
Member

clange commented Jul 21, 2021

BTW, so far it has not been specified what exactly ids:contentStandard or ids:representationStandard should link to: a specification document, a schema resource, etc. In future, it may become necessary to introduce more specific subproperties for these cases. In the Datenraum Mobilität we have discussed the technical integration of a Vocabulary Provider via ids:contentStandard / ids:representationStandard pointing to the URI of a schema known to the Vocabulary Provider, e.g., an XML namespace URI or an ontology URI. In various settings we are realizing that we may need to formally specify the interaction of other components with a Vocabulary Provider.

@tomkxy
Copy link
Author

tomkxy commented Jul 21, 2021

For me ids:representationStandard would be kind of clearly related to for instance a schema file to which content is supposed to adhere to.
For contentStandard that is not that clear. It seems to be plausible to use it to integrate a vocab provider. But then, I again would have the question how to link to additional "files" which contains what ever is required to understand content.

@HaydarAk HaydarAk added the enhancement ticket proposing an improvement, extension of exisitng or new features label Oct 7, 2021
@JohannesLipp
Copy link
Member

@tomkxy sorry for the late reply. Could you please comment if the issue still remains and still needs to be tackled? Thank you in advance!

@tomkxy
Copy link
Author

tomkxy commented Mar 26, 2022

If there hasn't been any changes in the Infomobil V5, then it is still present. Though, we have been worked around. But anyway, I still find it cumbersome.

@JohannesLipp JohannesLipp added this to the 6.0.0 milestone Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ticket proposing an improvement, extension of exisitng or new features
Projects
None yet
Development

No branches or pull requests

5 participants