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

Suggestion: Obtain prefixes for turtle output from vocabularies.ttl #387

Closed
jneubert opened this issue Dec 12, 2015 · 4 comments
Closed
Assignees
Milestone

Comments

@jneubert
Copy link
Contributor

Currently, in a turtle export, prefixes like ns0: occur.

Perhaps the user could express her preferred prefixes by adding them to vocabularies.ttl

@osma
Copy link
Member

osma commented Dec 14, 2015

We already do this for vocabulary id's, see https://github.com/NatLibFi/Skosmos/blob/master/model/Model.php#L401

I'm not sure how to access the namespace prefixes defined in a particular Turtle file using EasyRdf. If you can investigate and make a PR, it will be very welcome ;)

@osma osma added this to the Next Tasks milestone Dec 14, 2015
@osma
Copy link
Member

osma commented Jan 8, 2016

The EasyRdf Turtle parser stores namespaces in a protected field and doesn't expose them, so it's rather difficult to access them from outside the parser. At the minimum one would have to subclass TurtleParser (luckily it's a protected field, not a private one) and add a getNamespaces method to the subclass.

@osma osma added the size-medium 2 hours to 2 days label Jan 8, 2016
@osma osma modified the milestones: Next Tasks, 1.5 Jan 12, 2016
@osma osma self-assigned this Jan 12, 2016
@osma osma closed this as completed in 802a7f1 Jan 19, 2016
@GO5IT
Copy link

GO5IT commented Feb 11, 2020

Hello,

I'm just a SKOSMOS user, but I have a question related to this closed issue. When I import SKOS which have proprietary namespaces (ie not included in SKOSMOS data model), it seems all are stored under xmlns:ns0. It is OK that they cannot be displayed on the web interface, but just wondering if there is a way to avoid this and see the original namespaces in the downloadable formats like RDF/XML, Turtle and JSON-LD (e.g. xmlns:example="http://www.example.com")? At least I could not find information about this in the documentation. If this is not possible, it wold be a feature request (displaying them as well, if feasible). Thank you!

@osma
Copy link
Member

osma commented Feb 11, 2020

@GO5IT I believe that what you describe should already happen. This issue was exactly about that feature, and it was implemented in January 2016, as can be seen above. Of course it's possible that there are some bugs in the implementation - in that case, please open a new issue or report your problems in the skosmos-users group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants