incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabian Christ (JIRA)" <>
Subject [jira] Commented: (CLEREZZA-222) Make it possible to register namespace prefixes for graph serialization
Date Fri, 12 Nov 2010 13:29:15 GMT


Fabian Christ commented on CLEREZZA-222:

There is a first implementation for this in the org.apache.clerezza.platform.curieprefixmanager
component by Reto. The component defines the following interface:

	 * @param iriPrefix that part of the iri that will be replaced by the return value n the
	 * @return the suggested prefix or null if no suggestion is available
	public String getRecommendedPrefix(String iriPrefix);

For serializing RDF data this interface is insufficient. It would be nice to have an interface
which takes an URI or IRI and gives back the shortened version of this URI using the prefix
notation. In serializers it is the case that you have many URIs and you have to shorten them
using namespace prefixes. In deserializers it is the other way round where you have some prefix
notation and want to get the full representation.

Suggestion for extending the interface:

	public String getPrefixNotation(String input);

The prefix notation would be <prefix>":"<extension>. Examples:

getPrefixNotation("") returns "xsd:integer"
getPrefixNotation("http:/") returns "foaf:Person"

It would also be nice to handle typed literals this way:

returns "2010-05-29T14:17:39+02:00^^xsd:dateTime"

> Make it possible to register namespace prefixes for graph serialization
> -----------------------------------------------------------------------
>                 Key: CLEREZZA-222
>                 URL:
>             Project: Clerezza
>          Issue Type: Improvement
>            Reporter: Olivier Grisel
>            Assignee: Reto Bachmann-Gmür
> Jena provides the ability to register namespace prefixes to a model. Those prefixes are
especially useful to make turtle (and orther) RDF serialization less verbose and thus more
readable by the human developer. However this feature is currently not available trough the
Clerezza public API.
> Clerezza should also register commonly used namespace prefixes (foaf, dc, sioc, doap,
...) by default.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message