UTS-eResearch / datacrate

Bagit-based data packaging specification for dissemination of research data with useful human and machine readable metadata: "Make Data Crate Again!"
38 stars 10 forks source link

Not QNames but CURIEs #6

Closed Conal-Tuohy closed 7 years ago

Conal-Tuohy commented 7 years ago

The notation you want for abbreviating the URIs of properties is not QName but CURIE.

Syntactically they are similar but not identical; every QName is syntactically a valid CURIE but the reverse is not the case.

A QName is a shorthand for a (namespaced) XML element or attribute name. It's actually not an abbreviation for a URI; it's an abbreviation for a pair: a URI and a "local" XML name. This means that the part of a QName after the colon must be a valid XML name, which means that it can't for instance start with a digit. This makes isbn:0321154991 not a valid QName, though it would be a valid CURIE.

A CURIE by contrast is a shorthand for a URI, and that's exactly what you need for RDF properties and classes.