required files:
- graph.txt
- graph_label.txt
- entity.txt
- entity_string_label.txt
I will output spatialNodesZeroOneHopPN_-1.txt
required files:
- Graph database file folder. (graph.db folder should be removed at the beginning)
- graph.txt
required files:
- Graph database file folder.
- entity.txt
- spatialNodesZeroOneHopPN_-1.txt
1-4 are run by using constructTree_single.sh If fail the load step (either Step 2 or 3, need to delete this folder: data/databases/graph.db).
5. Rename the generated graph database folder to from neo4j-community-3.4.12_Gleenes_1.0_-1_new_version to four different folder names. It can done manually or using copy_maxPNSize.sh (path modification required).
- neo4j-community-3.4.12_Gleenes_1.0_10_new_version
- neo4j-community-3.4.12_Gleenes_1.0_40_new_version
- neo4j-community-3.4.12_Gleenes_1.0_160_new_version
- neo4j-community-3.4.12_Gleenes_1.0_640_new_version
Run maxPNSize_construct_PN_single.sh
required files
- PN files
- Graph db folder
- containID.txt
If this step fails after the graph db is accessed, need to re-run from scratch.
- Copy the
node_edges
db toadd
data directory. sampleFile
: Sampling requires the edge format graph file. Need to generate for datasets (except for wikidata).removeEdgesFromDb
:removeEdgesFromGraphFile
- Backup the current db. Rename it with suffix.
- Construct tree, containId file, and PN files.
- Backup suffix db.
- Load the PN.