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

Document use of URLs as electronic address text #1156

Open
rjyounes opened this issue Sep 8, 2024 · 3 comments
Open

Document use of URLs as electronic address text #1156

rjyounes opened this issue Sep 8, 2024 · 3 comments

Comments

@rjyounes
Copy link
Collaborator

rjyounes commented Sep 8, 2024

According to the gist 13 address model, URLs can be modeled as instances of gist:Address with the containedText the URL string. We want to datatype these as xsd:anyURI, but the range of containedText is xsd:string.

I think the recommendation to users is to define their own property, such as ex:url, to use in such cases, in the same way that we have suggested they could define addressCity, etc.

@rjyounes rjyounes changed the title Contained text should not have range xsd:string since it's used for address text Document use of URLs as electronic address text Sep 8, 2024
@DanCarey404
Copy link
Contributor

Your interpretation was not my intention for the addresses model. The URL (not URI) associated with an electronic address should be captured as a string. I think gist:containedText is fine the way it is.

@uscholdm
Copy link
Contributor

uscholdm commented Sep 9, 2024

this raises a more general question: When to use anyuri. It seems like the right thing to do some of the time, but it is not clear what the practical benefits are in actual applications, vs. using xsd:string

@rjyounes
Copy link
Collaborator Author

rjyounes commented Sep 9, 2024

@DanCarey404:

Your interpretation was not my intention for the addresses model. The URL (not URI) associated with an electronic address should be captured as a string. I think gist:containedText is fine the way it is.

Why not use a URL typed as xsd:anyURI? E.g., to make an actionable link in a browser.

The proposal is not to change gist:containedText - apologies, I think the original version of this issue did perhaps propose that - but to use a new predicate in the extension ontology with xsd:anyURI values.

@uscholdm:

this raises a more general question: When to use anyuri. It seems like the right thing to do some of the time, but it is not clear what the practical benefits are in actual applications, vs. using xsd:string

See above - for a web application consuming the RDF to make this an actionable link rather than text without having to look at, say, the ElectronicAddressType. xsd:anyURI is completely ontology-agnostic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Triage
Development

No branches or pull requests

3 participants