diff options
author | amita singh <amitacr@gmail.com> | 2012-06-06 14:42:14 +0530 |
---|---|---|
committer | amita singh <amitacr@gmail.com> | 2012-06-06 14:42:14 +0530 |
commit | 25a00deee21e5693bca8d158bd1df77dd9063f16 (patch) | |
tree | f2b5c322e19fc709b99232888351112cc001be7c /gstudio/management/commands/dump_all_rdf.py | |
parent | 5aaef0a16927c40c486fc0bc7bad0f63cc43c050 (diff) | |
download | gnowsys-25a00deee21e5693bca8d158bd1df77dd9063f16.tar.gz |
dump_all_rdf.py generates the rdf for all objects in one file and 4store_rdf_import.pytransfers all the rdf into 4store
Diffstat (limited to 'gstudio/management/commands/dump_all_rdf.py')
-rw-r--r-- | gstudio/management/commands/dump_all_rdf.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gstudio/management/commands/dump_all_rdf.py b/gstudio/management/commands/dump_all_rdf.py index c2d21b7..0b0097e 100644 --- a/gstudio/management/commands/dump_all_rdf.py +++ b/gstudio/management/commands/dump_all_rdf.py @@ -57,7 +57,7 @@ def rdf_all(notation='xml'): node=Gbobject.objects.get(title=node) rdflib=link(node) - elif (node_type=='Processes'): + elif (node_type=='Process'): node=Gbobject.objects.get(title=node) rdflib=link(node) @@ -100,7 +100,7 @@ def rdf_all(notation='xml'): elif (node_type=='AttributeSpecification'): node=AttributeSpecification.objects.get(title=node) rdflib=link(node) - + elif (node_type=='RelationSpecification'): node=RelationSpecification.objects.get(title=node) rdflib=link(node) @@ -118,12 +118,15 @@ def rdf_all(notation='xml'): rdflib = Namespace('http://sbox.gnowledge.org/gstudio/') except: if(node_type=='Attribute'): + node=Attribute.objects.get(title=node) rdflib= Namespace('http://sbox.gnowledge.org/gstudio/') if(node_type=='Relationtype' ): + node=Attribute.objects.get(title=node) rdflib= Namespace('http://sbox.gnowledge.org/gstudio/') if(node_type=='Metatype'): + node=Attribute.objects.get(title=node) rdflib= Namespace('http://sbox.gnowledge.org/gstudio/') subject=str(node_dict['id']) |