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

rdf2sparql: interpolate variable in prefixed URL #48

Open
VladimirAlexiev opened this issue Jan 17, 2025 · 0 comments
Open

rdf2sparql: interpolate variable in prefixed URL #48

VladimirAlexiev opened this issue Jan 17, 2025 · 0 comments

Comments

@VladimirAlexiev
Copy link
Owner

VladimirAlexiev commented Jan 17, 2025

It is possible to interpolate variables (and invoke macros) in templated URLs:

<schema/refinery/(n)> a csvw:Column, sosa:ObservableProperty;  ## have it
  csvw:datatype <schema/refinery/(n)/(dtBase)>, "(datatype)";  ## have it
  sosa:hasFeatureOfInterest <feature/URLIFY(SPLIT(features))>;  ## have it
  un:qualifier <qualifier/SPLIT(statisticalQualifiers)>;   ## have it
  qudt:hasQuantityKind qk:\(quantityKind\);  ## need it 
  qudt:hasUnit unit:\(unit\);  ## need it

However, there's also a need to interpolate vars in prefixed URLs (last 2 lines above).

Notes:

  • I could write this as as follows, but I prefer not to use full URLs, to avoid mistakes
<http://qudt.org/vocab/unit/(unit)>
<http://qudt.org/schema/quantityKind/(quantityKind)>
  • Parentheses need to be escaped in a prefixed URLs but they display fine in rdfpuml
    Image
  • for now interpolating single vars is enough
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