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

Is rdfType a URL, URI or IRI? #563

Closed
Stephen-Gates opened this issue Jan 10, 2018 · 3 comments
Closed

Is rdfType a URL, URI or IRI? #563

Stephen-Gates opened this issue Jan 10, 2018 · 3 comments

Comments

@Stephen-Gates
Copy link
Contributor

Data Curator makes data packages. We want to ensure that the user enters a correct value in the rdfType property. As discussed in Data-Curator #314 we are unsure how to validate it.

Perhaps the FD spec and the referenced RDF Schema spec should align given the change from URI to IRI.

@rufuspollock
Copy link
Contributor

@Stephen-Gates sounds good.

@Stephen-Gates
Copy link
Contributor Author

Stephen-Gates commented Jan 29, 2018

Sorry @rufuspollock I wasn't clear...

The W3C RDF Schema 1.1 spec changed from URI to using IRI . So do you want the spec to be changed to...

Rich Types

A richer, "semantic", description of the "type" of data in a given column MAY be provided using a rdfType property on a field descriptor.

The value of of the rdfType property MUST be the URI IRI of a RDF Class, that is an instance or subclass of RDF Schema Class object

As I was told that the code to validate an IRI is difficult, Data Curator is validating that the rdfType is a URL.

I notice that tableschema.js does not validate rdfType https://github.com/frictionlessdata/tableschema-js/blob/f8539f5326caff210d4653ac5446144e596a067c/src/profiles/table-schema.json#L101

@rufuspollock
Copy link
Contributor

@Stephen-Gates I'd stick with whatever is easy and well-supported to validate. If that means sticking with URI (and, perhaps for validation, URL) that's good with me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants