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

should also sanitize prop and datatype URLs #5

Open
VladimirAlexiev opened this issue Sep 9, 2019 · 0 comments
Open

should also sanitize prop and datatype URLs #5

VladimirAlexiev opened this issue Sep 9, 2019 · 0 comments

Comments

@VladimirAlexiev
Copy link
Owner

The file star-wars-luke-skywalker.ttl defines

@prefix voc <https://swapi.co/vocabulary/>.

but it's not in a prefixes.ttl file, which causes full URLs in the puml output:

_https_swapi_co_resource_vehicle_30_ : <https://swapi.co/vocabulary/manufacturer> "Aratech Repulsor Company"
_https_swapi_co_resource_vehicle_30_ : <https://swapi.co/vocabulary/maxAtmospheringSpeed> "360"^^<http://www.w3.org/2001/XMLSchema#integer>

plantuml then mangles some of the URLs by removing // and emits them in italic:
image

We need to sanitize not just subject URLs (as above, done in puml_node()), but also prop and datatype URLs.

Low priority, because it's much preferable for prop and datatype URLs to be prefixed (shortened).

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