Understood. Many thanks.
-- 
Daniel Maatari Okouya
Sent with Airmail
From: Chris_Dollin Chris_Dollin
Reply: [email protected] [email protected]
Date: January 4, 2014 at 7:49:55 PM
To: [email protected] [email protected]
Subject:  Re: How to create a jena Model with a specific URI ?  
On Saturday, January 04, 2014 07:21:32 PM Daniel Maatari Okouya wrote:  

> //model.write(System.out);  
> RDFDataMgr.write(System.out, model, Lang.TTL)  
>  
> Meanwhile i get this and i write it down:  
>  
> @prefix : <http://www.people.usi.ch/okouyad/Mary_to_john_Claim_01.owl#>  
> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .  
> @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .  
> @prefix owl: <http://www.w3.org/2002/07/owl#> .  
> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .  
> @prefix PayDelivery:  
> <http://www.people.lu.unisi.ch/okouyad/PayDeliveryOntology.owl#> . @prefix  
> MaryRepoOnto:  
> <http://www.people.usi.ch/okouyad/MaryRepositoryOntology.owl#> .  
>  
> MaryRepoOnto:Lord_of_the_Ring  
> PayDelivery:hasPrice "15"^^xsd:long .  
>  
> <http://www.people.usi.ch/okouyad/Mary_to_john_Claim_01.owl>  
> a owl:Ontology .  
>  
>  
> I find it weird that the ontology triple comes at the end.  

The order in which triples appear in a Turtle file isn't specified  
(and does not matter to the semantics of RDF), so they can  
appear in whatever order the implementation likes;  
it depends on the internals of the tables used for the model.  

(For a Jena memory model, for example, it's going to depend on  
the hash value of the nodes in the triple and the size of the  
hash table the nodes are kept in and the order that the triples  
arrive in the table in some circumstances.)  

> If i create an  
> analogue file with protege and loads it, and write it down, the ontology  
> declaration triple get written at the beginning  

That's a Protege thing.  

> as everyone would expect.  

By no means everyone.  

> I think it is a code smell.  
>  
> Any idea ? is something going wrong ?  

No.  

Chris  

Reply via email to