You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Rob Vesse <ra...@ecs.soton.ac.uk> on 2011/10/15 10:29:20 UTC

Re: [jena-dev] ARQ 2.8.8 MODEL.write () in TURTLE format doesn't output valid predicates

Hi

'a' is a keyword in Turtle which can be used as a predicate only and is
shorthand for the full URI
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> which you see in the
NTriples output.

This is by design and not a bug, the two outputs mean exactly the same
thing.  Hope this helps!

Regards,

Rob

On Sat, 15 Oct 2011 00:00:46 -0000, "amit" <jo...@gmail.com>
wrote:
> Hi,
> 
> Predicates are referred to as 'a' while printing out the model in the
> TURTLE format 
> 
> result.write(System.out, "TURTLE");
> 
> --output--
> @prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> @prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
> 
> <http://data.linkedmdb.org/resource/country/CV>
>       a       <http://proton.semanticweb.org/2005/04/protonu#Country> .
> 
> <http://data.linkedmdb.org/resource/country/GM>
>       a       <http://proton.semanticweb.org/2005/04/protonu#Country> .
> 
> ---
> 
> If I print out the same in N-Triple format, I get the details:
> 
> <http://data.linkedmdb.org/resource/country/CV>
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
> <http://proton.semanticweb.org/2005/04/protonu#Country> .
> <http://data.linkedmdb.org/resource/country/GM>
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
> <http://proton.semanticweb.org/2005/04/protonu#Country> .
> 
> 
> Probably a bug in arq-2.8.8 version?
> 
> 
> 
> ------------------------------------
> 
> The Jena user list is moving to Apache.
> 
> The new list name is 'jena-users' and the mail server is
> 'incubator.apache.org'. 
> 
> Send email to 
>   'jena-users-subscribe' at 'incubator.apache.org'
> to subscribe.
> Yahoo! Groups Links
> 
> <*> To visit your group on the web, go to:
>     http://groups.yahoo.com/group/jena-dev/
> 
> <*> Your email settings:
>     Individual Email | Traditional
> 
> <*> To change settings online go to:
>     http://groups.yahoo.com/group/jena-dev/join
>     (Yahoo! ID required)
> 
> <*> To change settings via email:
>     jena-dev-digest@yahoogroups.com 
>     jena-dev-fullfeatured@yahoogroups.com
> 
> <*> To unsubscribe from this group, send an email to:
>     jena-dev-unsubscribe@yahoogroups.com
> 
> <*> Your use of Yahoo! Groups is subject to:
>     http://docs.yahoo.com/info/terms/

-- 
PhD Student
WAIS Group
Bay 20, Room 4027, Building 32
Electronics & Computer Science
University of Southampton