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

Token for "any language-tagged string" #78

Closed
ericprud opened this issue Dec 23, 2017 · 0 comments
Closed

Token for "any language-tagged string" #78

ericprud opened this issue Dec 23, 2017 · 0 comments
Milestone

Comments

@ericprud
Copy link
Contributor

ericprud commented Dec 23, 2017

This text was moved to a response to #74.

I had an action item to draft a proposal for an intuitive token for "any language-tagged string". I ended up using @~ instead of @* (see shex.js example). This worked in shex.js with fewer than 10 changed lines.

<#LangString> rdf:langString

<#LangStem> [@en~]

<#Empty> [@~]

<#EmptyExclEN> [@~ - @en] # rejects "ab"@en

<#EmptyExclFR> [@~ - @fr]

# <#EmptyExclEmpty> [@~ - @~] <-- not valid in grammar

# <#DotExclEmpty> [. - @~] <-- not valid in grammar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant