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

add a prefix and base to turtle #92

Closed
VladimirAlexiev opened this issue Aug 28, 2017 · 3 comments
Closed

add a prefix and base to turtle #92

VladimirAlexiev opened this issue Aug 28, 2017 · 3 comments
Labels
blocked Progress on the issue is blocked by another issue

Comments

@VladimirAlexiev
Copy link

VladimirAlexiev commented Aug 28, 2017

https://linked.art/example/object/16.ttl is nice, but please:

  • add @prefix aat:
  • add @base <https://linked.art/example/>
@azaroth42 azaroth42 added the blocked Progress on the issue is blocked by another issue label Aug 28, 2017
@azaroth42
Copy link
Collaborator

I did this but rdflib doesn't produce more readable output.

e.g.

@prefix aat: <http://vocab.getty.edu/aat/> .
@prefix crm: <http://www.cidoc-crm.org/cidoc-crm/> .
[...]

<object/11> a crm:E22_Man-Made_Object ;
    rdfs:label "Simple Example Painting" ;
    crm:P2_has_type <http://vocab.getty.edu/aat/300033618>,
        <http://vocab.getty.edu/aat/300133025> .

Note, the base just sets the relative URI, but doesn't add @base. And adding aat as a prefix doesn't change the output for the URIs as subjects.

Tagging as blocked.

@VladimirAlexiev
Copy link
Author

base just sets the relative URI, but doesn't add @base

That's a common problem, eg see also kasei/perlrdf#131 (split from kasei/perlrdf#130 (comment))

aat as a prefix doesn't change the output for the URIs as subjects

That's a peculiarity of rdflib. Jena RIOT shortens them.

@azaroth42
Copy link
Collaborator

Closing. Having the full dereferencable URI is valuable for consumers in the JSON, so keeping the turtle in sync with the instance URIs is probably okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Progress on the issue is blocked by another issue
Projects
None yet
Development

No branches or pull requests

2 participants