This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
from rdflib import Dataset | |
from rdflib.plugins.stores import sparqlstore | |
import shutil | |
db_directory = "/tmp/bdb-test" | |
dataset = Dataset("BerkeleyDB") | |
dataset.open (db_directory, create=True) | |
if not isinstance (dataset, Dataset): | |
print ("Failed to setup BerkeleyDB store.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mapFile="$1" | |
dotFile="$2" | |
##### DO NOT EDIT BELOW ######## | |
# Write the graph to a file in DOT format. | |
function write_to_file | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "point-reduction.h" | |
#include "../datatypes/coordinate.h" | |
#include "../datatypes/element.h" | |
static int | |
opt_in_between (dt_coordinate* first, dt_coordinate* second, dt_coordinate* third) | |
{ | |
int crossproduct = | |
(third->y - first->y) * (second->x - first->x) - | |
(third->x - first->x) * (second->y - first->y); |