-
Notifications
You must be signed in to change notification settings - Fork 74
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
Multibase XSD & RDF Literal Datatype IRI #133
Comments
I believe website is at https://github.com/multiformats/website |
So that at least something appears on https://multiformats.io/multibase. Related to multiformats/multibase#133.
Thanks! PR multiformats/website#83 raised. If that gets merged, then perhaps this issue is as simple as adding (something like) this text to that: Note that the URL of this page (`https://multiformats.io/multibase`)
can be used as Datatype IRI for this format e.g. in XML and RDF Literals
(similar e.g. to `xsd:hexBinary` or `xsd:base64Binary`. Or should we use another IRI? |
That would actually leave the door a bit more open for there to also be a few other IRIs, perhaps:
|
I am not familiar with RDF enough to provide meaningful answer, but the whole point of Multibase is be self-describing string-based representaton of arbitrary bytes in arbitrary base. Constructs like Perhaps keep it simple and use |
Maybe use an URN? |
Agreed, of course. But those wouldn't be describing the string value of a self describing Multibase instance, but
So for example in the 🐢 Turtle (TTL) syntax of RDF (see Wikipedia, or on enola.dev), one would use it like so: @prefix ex: <http://example.org/stuff/1.0/>.
@prefix mf: <https://multiformats.io/>.
@prefix schema: <https://schema.org/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
ex:dude1 a schema:Person
schema:email "[email protected]";
enola:pubKey
"fe1b7c..."^^xsd:hexBinary
"TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu"^^xsd:base64Binary
"z8VttgvnrXN5ZzqAh8BLwyup7htUmSM9gbKR445teEECTwMRDQTireiW..."^^mf:multibaseBinary
"🚀🖥😋🎉😜🌔🤞🌔💕👐..."^^mf:multibaseBinary. |
My understanding is that using a URL as an IRI for a Datatype is common and preferable if for nothing else than simply being able to put up some documentation for human consumption curiosity about it at that URL. (One could also serve RDF as TTL, or another serialization, from that URL, but it's neither technically "required" nor does it seem to be particularly common.) |
What shall the IRI of a Multibase datatype (in a RDF Literal or RDFS, but even XML, or
a JSON Schema,or whatever) be?You know, like e.g.
xsd:hexBinary
or xsd:base64Binary.We could say / here agree upon / specify / document it's e.g. https://multiformats.io/multibase ? It's just a shame that 404s. Where is the repo for that website, so that I can contribute a fix for that?
The text was updated successfully, but these errors were encountered: