Mercurial > repos > sanbi-uwc > neo4j_datatypes
annotate neo4j.py @ 9:f4714c838f27 draft
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 922fd8b22de3e555592844a4413ddcad2f726896
author | sanbi-uwc |
---|---|
date | Wed, 18 May 2016 09:10:51 -0400 |
parents | 666c7e606768 |
children | ce5df18856ee |
rev | line source |
---|---|
0
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
1 """ |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
2 Neo4j Composite Dataset |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
3 """ |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
4 import logging |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
5 import sys |
8
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
6 import os |
0
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
7 |
6
643e3ebaa907
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 9d8d51693f14824c421f2e493dfc54939032a229
sanbi-uwc
parents:
5
diff
changeset
|
8 from galaxy.datatypes.images import Html |
643e3ebaa907
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 9d8d51693f14824c421f2e493dfc54939032a229
sanbi-uwc
parents:
5
diff
changeset
|
9 from galaxy.datatypes.data import Data, Text, Html |
8
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
10 from galaxy.datatypes.metadata import MetadataElement |
0
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
11 |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
12 gal_Log = logging.getLogger(__name__) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
13 verbose = True |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
14 |
5
7f262236d352
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit ebd884bad7609048e02d1ef04985cf812ab142a3
sanbi-uwc
parents:
4
diff
changeset
|
15 |
8
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
16 class Neo4j(Html): |
0
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
17 """ |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
18 base class to use for neostore datatypes |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
19 derived from html - composite datatype elements |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
20 stored in extra files path |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
21 """ |
8
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
22 MetadataElement( name='neostore', default=None, desc='Neo4j NeoStore File', readonly=True, visible=True, set_in_upload=True, no_value=None ) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
23 MetadataElement( name='neostore_count_file', default=None, desc='Neo4j Count File', readonly=True, visible=True, set_in_upload=True, no_value=None ) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
24 MetadataElement( name="neostore_labeltokenstore_db_file", default=None, desc="Neostore LabelTokenStore File", readonly=True, visible=True, no_value=None ) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
25 MetadataElement( name="neostore_nodestore_file", default=None, desc="Neostore NodeStore File", readonly=True, visible=True, no_value=None) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
26 MetadataElement( name="neostore_propertystore_file", default=None, desc="Neostore Property Store File", readonly=True, visible=True, no_value=None) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
27 MetadataElement( name="neostore_relationship_group_file", default=None, desc="Neostore Relationship Group File", readonly=True, visible=True, no_value=None) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
28 MetadataElement( name="neostore_relationship_file", default=None, desc="Neostore Relationship File", readonly=True, visible=True, no_value=None) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
29 MetadataElement( name="neostore_relationship_type_file", default=None, desc="Neostore Relationship Type File", readonly=True, visible=True, no_value=None) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
30 MetadataElement( name="neostore_schema_store_file", default=None, desc="Neostore Schema Store File", readonly=True, visible=True, no_value=None) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
31 MetadataElement( name="neostore_transaction_db_file", default=None, desc="Neostore Transaction File", readonly=True, visible=True, no_value=None) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
32 |
9
f4714c838f27
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 922fd8b22de3e555592844a4413ddcad2f726896
sanbi-uwc
parents:
8
diff
changeset
|
33 composite_type = 'auto_primary_file' |
f4714c838f27
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 922fd8b22de3e555592844a4413ddcad2f726896
sanbi-uwc
parents:
8
diff
changeset
|
34 #composite_type = 'basic' |
8
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
35 allow_datatype_change = False |
5
7f262236d352
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit ebd884bad7609048e02d1ef04985cf812ab142a3
sanbi-uwc
parents:
4
diff
changeset
|
36 file_ext = 'neo4j' |
7f262236d352
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit ebd884bad7609048e02d1ef04985cf812ab142a3
sanbi-uwc
parents:
4
diff
changeset
|
37 |
8
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
38 def generate_primary_file( self, dataset=None ): |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
39 rval = ['<html><head><title>Neo4j Galaxy Composite Dataset </title></head><p/>'] |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
40 rval.append('<div>This composite dataset is composed of the following files:<p/><ul>') |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
41 for composite_name, composite_file in self.get_composite_files( dataset=dataset ).iteritems(): |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
42 fn = composite_name |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
43 opt_text = '' |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
44 if composite_file.optional: |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
45 opt_text = ' (optional)' |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
46 if composite_file.get('description'): |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
47 rval.append( '<li><a href="%s" type="application/binary">%s (%s)</a>%s</li>' % ( fn, fn, composite_file.get('description'), opt_text ) ) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
48 else: |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
49 rval.append( '<li><a href="%s" type="application/binary">%s</a>%s</li>' % ( fn, fn, opt_text ) ) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
50 rval.append( '</ul></div></html>' ) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
51 return "\n".join( rval ) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
52 |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
53 def regenerate_primary_file(self, dataset): |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
54 """ |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
55 cannot do this until we are setting metadata |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
56 """ |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
57 efp = dataset.extra_files_path |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
58 flist = os.listdir(efp) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
59 rval = ['<html><head><title>Files for Composite Dataset %s</title></head><body><p/>Composite %s contains:<p/><ul>' % (dataset.name, dataset.name)] |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
60 for i, fname in enumerate(flist): |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
61 sfname = os.path.split(fname)[-1] |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
62 f, e = os.path.splitext(fname) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
63 rval.append( '<li><a href="%s">%s</a></li>' % ( sfname, sfname) ) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
64 rval.append( '</ul></body></html>' ) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
65 f = file(dataset.file_name, 'w') |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
66 f.write("\n".join( rval )) |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
67 f.write('\n') |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
68 f.close() |
666c7e606768
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 017f62614ecc913e42cdd8df79b94775968f0c2c
sanbi-uwc
parents:
7
diff
changeset
|
69 |
0
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
70 def get_mime(self): |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
71 """Returns the mime type of the datatype""" |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
72 return 'text/html' |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
73 |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
74 def set_peek(self, dataset, is_multi_byte=False): |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
75 """Set the peek and blurb text""" |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
76 if not dataset.dataset.purged: |
1
9f8e04bd6fa9
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 3f5361a7226127ec8b8d6cb5591b5bb4f52bb6fe
sanbi-uwc
parents:
0
diff
changeset
|
77 dataset.peek = 'Neo4j database (multiple files)' |
9f8e04bd6fa9
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 3f5361a7226127ec8b8d6cb5591b5bb4f52bb6fe
sanbi-uwc
parents:
0
diff
changeset
|
78 dataset.blurb = 'Neo4j database (multiple files)' |
0
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
79 else: |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
80 dataset.peek = 'file does not exist' |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
81 dataset.blurb = 'file purged from disk' |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
82 |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
83 def display_peek(self, dataset): |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
84 """Create HTML content, used for displaying peek.""" |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
85 try: |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
86 return dataset.peek |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
87 except Exception: |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
88 return "NEO4J database (multiple files)" |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
89 |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
90 def display_data(self, trans, data, preview=False, filename=None, |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
91 to_ext=None, size=None, offset=None, **kwd): |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
92 """Documented as an old display method, but still gets called via tests etc |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
93 This allows us to format the data shown in the central pane via the "eye" icon. |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
94 """ |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
95 if filename is not None and filename != "index": |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
96 # Change nothing - important for the unit tests to access child files: |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
97 return Data.display_data(self, trans, data, preview, filename, |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
98 to_ext, size, offset, **kwd) |
1
9f8e04bd6fa9
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 3f5361a7226127ec8b8d6cb5591b5bb4f52bb6fe
sanbi-uwc
parents:
0
diff
changeset
|
99 if self.file_ext == "neostore": |
0
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
100 title = "This is a NEO4J database" |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
101 msg = "" |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
102 try: |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
103 # Try to use any text recorded in the dummy index file: |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
104 handle = open(data.file_name, "rU") |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
105 msg = handle.read().strip() |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
106 handle.close() |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
107 except Exception: |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
108 pass |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
109 if not msg: |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
110 msg = title |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
111 # Galaxy assumes HTML for the display of composite datatypes, |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
112 return "<html><head><title>%s</title></head><body><pre>%s</pre></body></html>" % (title, msg) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
113 |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
114 |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
115 class Neo4jDB(Neo4j, Data): |
1
9f8e04bd6fa9
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 3f5361a7226127ec8b8d6cb5591b5bb4f52bb6fe
sanbi-uwc
parents:
0
diff
changeset
|
116 """Class for neo4jDB database files.""" |
0
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
117 file_ext = 'neostore' |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
118 |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
119 def __init__(self, **kwd): |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
120 Data.__init__(self, **kwd) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
121 self.add_composite_file('neostore', substitute_name_with_metadata='neostore', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
122 self.add_composite_file('neostore.id', substitute_name_with_metadata='neostore', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
123 self.add_composite_file('neostore.counts.db.a', substitute_name_with_metadata='neostore_count_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
124 self.add_composite_file('neostore.counts.db.b', substitute_name_with_metadata='neostore_count_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
125 self.add_composite_file('neostore.labeltokenstore.db', substitute_name_with_metadata='neostore_labeltokenstore_db_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
126 self.add_composite_file('neostore.labeltokenstore.db.id', substitute_name_with_metadata='neostore_labeltokenstore_db_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
127 self.add_composite_file('neostore.labeltokenstore.db.names', substitute_name_with_metadata='neostore_labeltokenstore_db_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
128 self.add_composite_file('neostore.labeltokenstore.db.names.id', substitute_name_with_metadata='neostore_labeltokenstore_db_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
129 self.add_composite_file('neostore.nodestore.db', substitute_name_with_metadata='neostore_nodestore_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
130 self.add_composite_file('neostore.nodestore.db.id', substitute_name_with_metadata='neostore_nodestore_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
131 self.add_composite_file('neostore.nodestore.db.labels', substitute_name_with_metadata='neostore_nodestore_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
132 self.add_composite_file('neostore.nodestore.db.labels.id', substitute_name_with_metadata='neostore_nodestore_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
133 |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
134 self.add_composite_file('neostore.propertystore.db', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
135 self.add_composite_file('neostore.propertystore.db.id', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
136 self.add_composite_file('neostore.propertystore.db.arrays', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
137 self.add_composite_file('neostore.propertystore.db.arrays.id', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
138 self.add_composite_file('neostore.propertystore.db.index', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) |
5
7f262236d352
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit ebd884bad7609048e02d1ef04985cf812ab142a3
sanbi-uwc
parents:
4
diff
changeset
|
139 self.add_composite_file('neostore.propertystore.db.index.id', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) |
0
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
140 self.add_composite_file('neostore.propertystore.db.index.keys', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
141 self.add_composite_file('neostore.propertystore.db.index.keys.id', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
142 self.add_composite_file('neostore.propertystore.db.strings', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
143 self.add_composite_file('neostore.propertystore.db.strings.id', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
144 |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
145 self.add_composite_file('neostore.relationshipgroupstore.db', substitute_name_with_metadata='neostore_relationship_group_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
146 self.add_composite_file('neostore.relationshipgroupstore.db.id', substitute_name_with_metadata='neostore_relationship_group_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
147 self.add_composite_file('neostore.relationshipstore.db', substitute_name_with_metadata='neostore_relationship_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
148 self.add_composite_file('neostore.relationshipstore.db.id', substitute_name_with_metadata='neostore_relationship_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
149 self.add_composite_file('neostore.relationshiptypestore.db.names', substitute_name_with_metadata='neostore_relationship_type_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
150 self.add_composite_file('neostore.relationshiptypestore.db.names.id', substitute_name_with_metadata='neostore_relationship_type_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
151 self.add_composite_file('neostore.schemastore.db', substitute_name_with_metadata='neostore_schema_store_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
152 self.add_composite_file('neostore.schemastore.db.id', substitute_name_with_metadata='neostore_schema_store_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
153 self.add_composite_file('neostore.transaction.db.0', substitute_name_with_metadata='neostore_count_file', is_binary=True) |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
154 |
5
7f262236d352
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit ebd884bad7609048e02d1ef04985cf812ab142a3
sanbi-uwc
parents:
4
diff
changeset
|
155 |
0
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
156 if __name__ == '__main__': |
ba6fe46519e4
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 6f0defa160a42559d15bc47768b845f24227dc03
sanbi-uwc
parents:
diff
changeset
|
157 import doctest |
5
7f262236d352
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit ebd884bad7609048e02d1ef04985cf812ab142a3
sanbi-uwc
parents:
4
diff
changeset
|
158 |
6
643e3ebaa907
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 9d8d51693f14824c421f2e493dfc54939032a229
sanbi-uwc
parents:
5
diff
changeset
|
159 |
5
7f262236d352
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit ebd884bad7609048e02d1ef04985cf812ab142a3
sanbi-uwc
parents:
4
diff
changeset
|
160 doctest.testmod(sys.modules[__name__]) |