You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by hlel emna <em...@gmail.com> on 2015/04/06 23:20:47 UTC

Ontology-nameSpace

I tried to create an ontology with jena

String ns=??????;

OntModel m = ModelFactory.*createOntologyModel*();

OntClass autt = m.createClass(ns+"Auteur");

      OntClass thaut = m.createClass(ns+"Theme");

      OntClass motc = m.createClass(ns+ "Mot-Clé");

………….

how I can chose the namespace:

Re: Ontology-nameSpace

Posted by David Moss <ad...@gmail.com>.
ns = "http://example.com/whateveryouwant#";

Sent from my iPhone

> On 7 Apr 2015, at 7:20 am, hlel emna <em...@gmail.com> wrote:
> 
> I tried to create an ontology with jena
> 
> String ns=??????;
> 
> OntModel m = ModelFactory.*createOntologyModel*();
> 
> OntClass autt = m.createClass(ns+"Auteur");
> 
>      OntClass thaut = m.createClass(ns+"Theme");
> 
>      OntClass motc = m.createClass(ns+ "Mot-Clé");
> 
> ………….
> 
> how I can chose the namespace: