Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/semanticxo/datastore.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/semanticxo/datastore.py')
-rw-r--r--src/semanticxo/datastore.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/semanticxo/datastore.py b/src/semanticxo/datastore.py
deleted file mode 100644
index 191c0e0..0000000
--- a/src/semanticxo/datastore.py
+++ /dev/null
@@ -1,39 +0,0 @@
-'''
-Created on 24 Sep 2011
-
-@author: cgueret
-'''
-from rdflib import ConjunctiveGraph, RDF, URIRef, Namespace, Literal
-
-OLPC = Namespace("http://example.org/")
-
-class TripleStoreObject(object):
- pass
-
-class TripleStore(object):
- '''
- The TripleStore is a generic object interface with a triple store
- '''
- def __init__(self, params):
- '''
- Constructor of the TripleStore
- if an hostname is indicated, query the triple store of that machine
- instead of the one at localhost
- '''
- hostname = 'localhost'
- if 'hostname' in params.keys():
- hostname = params['hostname']
- self.store_url = 'http://%s:8080/' % hostname
- self.device_uid = 'ABC1234567890' #TODO find how to get the serial number
-
- def _get_resource(self, uid):
- '''
- Return the URI associated to a particular UID
- '''
- return URIRef(OLPC['resource/%s' % uid])
-
- def get_object(self, uid):
- '''
- Get a specific object associated to this UID
- '''
- \ No newline at end of file