[[TracNav]] [[PageOutline]] = PimoStorage = The PimoStorage stores the user's Personal Information Model. Basically, thats all ontologies, tags and wiki pages, and the relations to resources. '''more about: PimOntology ''' * [source:branches/gnowsis0.9/gnowsis-server/src/java/org/gnowsis/repository/PimoStorage.java Sourcecode PimoStorage.java] * [http://www.gnowsis.org/statisch/0.9/doc/gnowsis-server/javadoc/org/gnowsis/repository/PimoStorage.html Javadoc PimoStorage.java] Usage example: {{{ // I write a triple to the pimo Repository r = Gnowsis.getPimoStorage().getRepository(); Transation t = r.startTransaction(); // add something t.add(new StatementImpl(s, p, o)); t.commit(); // do fulltext search on pimo, using lucene query language Iterator tagI = Gnowsis.getPimoStorage().search("Hello*"); while (tagI.hasNext()) { Tag t = tagI.next(); System.out.println("found thing: "+t.getUri()+ " with name "+t.getName()); } }}} Features: * text indexing (using the lucene SAIL, configured to what is indexed). * Reification is used to say when a triple was inserted when its a user triple like pimo:occurrence. * Storage is !NativeSail + luceneSail = Named graphs and ontologies in the PIMO Storage = Since the [wiki:UpdateJuly2006Pimo Update to named graphs for the Pimo in July 2006] the PIMO Storage is used to distuingish between ontologies using named graphs. The context information in the quad-store is used to identify the ontology. We use the fourth element (context) of these quads for the URI of the ontology, the uri of the resource that describes the ontology is used, not the namespace. For example, for the PIMO-language the context identifier is {{{http://ontologies.opendfki.de/repos/ontologies/pim/pimo#PIMO-language}}}. The management of the ontologies inside the PimoStorage is now handled by the PimoService. '''You should stop using the web interface for Sesame1 to add data, it is not named graph conformant, we will work on that. ''' = Domain Ontologies = The user might decide to write a domain ontology or download one from the web. If that happens, the domain ontology (example: beer ontology) will be glued into the user's pimo. Domain ontologies are added/deleted/updated using methods of the PimoService. You can interact directly with the triples of an ontology in the store, but you have to care for inference and the correct context yourself then.