Using URI schemes other than urn and http as an identifier

已查看 37 次
跳至第一个未读帖子

Michael Panzer

未读,
2023年11月15日 12:21:182023/11/15
收件人 TopBraid Suite Users
Hi,

I am currently trying to use DIDs (https://www.w3.org/TR/did-core/) as identifiers for instances in TopBraid. 

Example:
<did:mcid:Wmqtv3fFNvXR3gspxGF1ML>  

The interface complains because it interprets the did: as a prefix instead of an URI scheme. I assume the same would happen with other URI schemes like ark:, etc. We know urn: works because it is used by TopBraid itself for graph identifiers.

Any way to solve this issue except by the workaround of adding "did:" as a CURIE prefix, even though it isn't one? (Or just creating the instances outside of TopBraid and then importing them?)

Cheers
Michael 

Holger Knublauch

未读,
2023年11月16日 04:19:362023/11/16
收件人 'Bohms, H.M. (Michel)' via TopBraid Suite Users
Hi Michael,

yes this is an unsupported case right now. We only hard-coded the URI entry field to allow for http: https: urn: and mailto:

I guess the other cases did not yet cross our paths and we didn't see use cases. Instead we tried to keep it simple so that users can seamlessly switch between full URIs and prefixed qnames. I struggle to see how else we could do that if we allow arbitrary URI schemes, as the system would then basically allow any prefixed name even if no prefix is declared. The only solution I could think of would be for us to add a configuration option to enumerate the other URI schemes. Do you have a better idea?

Holger


--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/8388969a-75b1-4227-b207-08b81ff09a90n%40googlegroups.com.

Michael Panzer

未读,
2023年11月17日 13:39:182023/11/17
收件人 TopBraid Suite Users
Hi Holger,

I can't think of a better solution at the moment myself (short of enabling the "official" list of all permanent URI schemes, which I don't think is feasible). I configuration option parallel to adding namespace prefixes for a graph would to the trick, so that I could add "did:" as a URI scheme instead of a namespace prefix.

Cheers
Michael

Holger Knublauch

未读,
2023年11月17日 15:50:082023/11/17
收件人 topbrai...@googlegroups.com
I guess we could add some other convention: when the ID field is of the form <...> then it should just use the URI verbatim.

This means users could enter <did:xy> and it would work.

Does this make sense?

In any case I have recorded a ticket for a future version - too late for the upcoming 7.8.0 though.

Holger


回复全部
回复作者
转发
0 个新帖子