-
Notifications
You must be signed in to change notification settings - Fork 15
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
anyURI values containing pipes are not parseable by the org.hl7.fhir.core library #155
Labels
Turtle
FHIR specification Turtle examples
Comments
Jena riot 5.0.0 gives these warnings:
However, it is not complaining about the fhir:valueSet [
fhir:v "http://hl7.org/fhir/ValueSet/all-languages|5.0.0"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/all-languages|5.0.0>
] ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Turtle filename
allergyintolerance.profile.ttl
That file and other profile files contain lines like this:
fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/all-languages|5.0.0"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/ValueSet/all-languages|5.0.0> ]
The value "http://hl7.org/fhir/ValueSet/all-languages|5.0.0"^^xsd:anyURI is not parseable by the https://github.com/hapifhir/org.hl7.fhir.core library, which is used to generate the Turtle examples and can also read them back in. Running the test generator gives this error when trying to roundtrip:
The error comes from this method (https://github.com/hapifhir/org.hl7.fhir.core/blob/7740b5d857013a905e99d1d82a530d82b58cdf29/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/turtle/Turtle.java#L725) which uses this IRI regex: https://github.com/hapifhir/org.hl7.fhir.core/blob/7740b5d857013a905e99d1d82a530d82b58cdf29/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/turtle/Turtle.java#L54
The text was updated successfully, but these errors were encountered: