semtk3.sparqlconnection module
- class semtk3.sparqlconnection.SparqlConnection(conn_json_str='{}', user_name=None, password=None)
Bases:
object- DATA = 'data'
- MODEL = 'model'
- build(name, triple_store_type, triple_store, model_graphs, data_graph, extra_data_graphs=[])
build a connection @param name : name @param triple_store_type : “fuseki” “neptune” “virtuoso”, etc. @param triple_store : the URL e.g. “http://localhost:3030/DATASET” @model_graphs : list of model graphs e.g. [“uri://my_graph”, “http://my/other#graph”] @data_graph : default ingestion data graph e.g. “uri://my_graph” @extra_data_graphs : list of data graphs with [“uri://my_graph”, “http://my/other#graph”]
- get_all_triplestore_urls()
- get_graph(model_or_data, index)
- get_password()
- get_server_and_port(model_or_data, index)
- get_server_type(model_or_data, index)
- get_user_name()
- to_conn_str()