kianschmalenbach / rdf-browser

A Firefox Add-on that requests RDF files and renders RDF files as Turtle documents with clickable links
MIT License
16 stars 6 forks source link

abbreviate URIs that contain dashes #29

Open Antoine-Zimmermann opened 3 years ago

Antoine-Zimmermann commented 3 years ago

When we have a URI whose local name has a dash, it is not abbreviated using the prefixes. E.g.:

@prefix ex: <http://example.com/> .
ex:some-thing a ex:Thing .

is rendered as:

@prefix ex: <http://example.com/> .
<http://example.com/some-thing> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ex:Thing .