Commit e1bd1e14 authored by lambdamusic's avatar lambdamusic

misc comments

parent 4c1c4cfb
ERROR: test1_load_dbpedia (__main__.TestSparqlStore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/michele.pasin/Dropbox/code/python/ontospy/ontospyProject/ontospy/tests/test_sparql.py", line 38, in test1_load_dbpedia
o = Ontospy(sparql_endpoint=self.ENDPOINT, verbose=True)
File "/Users/michele.pasin/Dropbox/code/python/ontospy/ontospyProject/ontospy/core/ontospy.py", line 91, in __init__
self.load_sparql(sparql_endpoint, verbose, hide_base_schemas, credentials)
File "/Users/michele.pasin/Dropbox/code/python/ontospy/ontospyProject/ontospy/core/ontospy.py", line 127, in load_sparql
graph = rdflib.ConjunctiveGraph('SPARQLUpdateStore')
File "/Users/michele.pasin/Envs/ontospy_py3/lib/python3.7/site-packages/rdflib/graph.py", line 1304, in __init__
super(ConjunctiveGraph, self).__init__(store, identifier=identifier)
File "/Users/michele.pasin/Envs/ontospy_py3/lib/python3.7/site-packages/rdflib/graph.py", line 313, in __init__
self.__store = store = plugin.get(store, Store)()
File "/Users/michele.pasin/Envs/ontospy_py3/lib/python3.7/site-packages/rdflib/plugins/stores/sparqlstore.py", line 606, in __init__
**kwds
File "/Users/michele.pasin/Envs/ontospy_py3/lib/python3.7/site-packages/rdflib/plugins/stores/sparqlstore.py", line 232, in __init__
self.setUseKeepAlive()
File "/Users/michele.pasin/Envs/ontospy_py3/lib/python3.7/site-packages/SPARQLWrapper/Wrapper.py", line 587, in setUseKeepAlive
if urllib2._opener and any(isinstance(h, HTTPHandler) for h in urllib2._opener.handlers):
NameError: name 'urllib2' is not defined
\ No newline at end of file
# Ontospy
Python toolkit for inspecting linked data knowledge models AKA ontologies or vocabularies.
Python library and command-line interface for inspecting and visualizing RDF models.
#### Links
- [Pypi home](https://pypi.org/project/ontospy/)
- [Github home](https://github.com/lambdamusic/ontospy)
- [Pypi](https://pypi.org/project/ontospy/)
- [Github](https://github.com/lambdamusic/ontospy)
- [Docs](http://lambdamusic.github.io/Ontospy/)
# Description
Ontospy is a lightweight Python library and command line tool for inspecting and visualizing vocabularies encoded using W3C Semantic Web standards, that is, RDF or any of its dialects (RDFS, OWL, SKOS).
The basic workflow is simple: load a graph by instantiating the `Ontospy` class with a file containing RDFS, OWL or SKOS definitions. You get back an object that lets you interrogate the ontology. That's all!
The basic workflow is simple: load a graph by instantiating the `Ontospy` class with a file containing RDFS, OWL or SKOS definitions. You get back a object that lets you interrogate the ontology. That's all!
The same functionalities are accessible also via a command line application (`ontospy`). This is an interactive environment (like a repl) that allows to load ontologies from a local repository, interrogate them and cache them so that they can be quickly reloaded for inspection later on.
## Generating ontology documentation
Ontospy can be used to generate HTML documentation for an ontology pretty easily.
This functionality relies on a module called _ontodocs_, which used to be maintained as a separate library but is now distributed with ontospy as an add-on: `pip install ontospy[HTML]`.
For some examples of the kind of documentation that can be generated out-of-the-box, [take a look at this page](http://www.michelepasin.org/support/ontospy-examples/index.html).
## More info
http://lambdamusic.github.io/Ontospy/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment