ontospy – Parerga und Paralipomena http://www.michelepasin.org/blog At the core of all well-founded belief lies belief that is unfounded - Wittgenstein Thu, 03 Jan 2019 11:56:48 +0000 en-US hourly 1 https://wordpress.org/?v=5.2.11 13825966 Ontospy 1.9.8 released http://www.michelepasin.org/blog/2019/01/03/ontospy-1-9-8-released/ Thu, 03 Jan 2019 11:55:14 +0000 http://www.michelepasin.org/blog/?p=3279 Ontospy version 1.9.8 has been just released and it contains tons of improvements and new features. Ontospy is a lightweight open-source Python library and command line tool for working with vocabularies encoded in the RDF family of languages.

Over the past month I’ve been working on a new version of Ontospy, which is now available for download on Pypi.

 

What’s new in this version

  • The library to generate ontology documentation (as html or markdown) is now included within the main Ontospy distribution. Previously this library was distributed separately under the name ontodocs.  The main problem with this approach is that keeping the two projects in sync was becoming too time-consuming for me, so I’ve decided to merge them. NOTE one can still choose whether or not to include this extra library when installing.
  • You can print out the raw RDF data being returned via command line argument.
  • One can decided whether or not to include ‘inferred’ schema definitions extracted from an RDF payload. The inferences are pretty basic for now (eg the object of rdf:type statements is taken to be a type) but this allows for example to quickly dereference a DBpedia URI and pull out all types/predicates being used.
  • The online documentation are now hosted on github pages and available within the /docs folder of the project.
  • Improved support for JSON-LD and a new utility for quickly sending JSON-LD data to the online playground tool.
  • Several other bug fixes and improvements, in particular to the interactive ontology exploration mode (shell command), the visualization library (new visualizations are available – albeit still in alpha state).
  •  

    ]]>
    3279
    OntoSpy v.1.7.4 http://www.michelepasin.org/blog/2017/02/27/ontospy-v-1-7-4/ Mon, 27 Feb 2017 07:59:52 +0000 http://www.michelepasin.org/blog/?p=2836 A new version of OntoSpy (1.7.4) is available online. OntoSpy is a lightweight Python library and command line tool for inspecting and visualising vocabularies encoded in the RDF family of languages.

    This version includes a hugely improved API for creating nice-looking HTML or Markdown documentation for an ontology, which takes advantage of frameworks like Bootstrap and Bootswatch.

    You can take a look at the examples page to see what I’m taking about.

    Screen Shot 2017 02 26 at 21 26 22

    Screen Shot 2017 02 26 at 21 26 40

    Screen Shot 2017 02 26 at 21 32 11

     

    To find out more about Ontospy:

  • CheeseShop: https://pypi.python.org/pypi/ontospy
  • Github: https://github.com/lambdamusic/ontospy

  • Here’s a short video showing a typical sessions with the OntoSpy repl:

    Coming up next

  • More advanced ontology visualisations using d3 or similar javascript libraries;
  • A better separation between the core Python library in OntoSpy and the other components. This is partly addressing the fact that the OntoSpy package has grown a bit too much, in particular form the point of view of people who are only interested in using it in order to create their own applications, as opposed (for example) to reusing the built-in visualisations.
  • Of course, any comments or suggestions are welcome as usual – either using the form below or via GitHub. Cheers!

     

    ]]>
    2836
    Ontospy v. 1.6.7 http://www.michelepasin.org/blog/2016/06/12/ontospy-v-1-6-7/ Sun, 12 Jun 2016 18:05:51 +0000 http://www.michelepasin.org/blog/?p=2783 A new and improved version of OntoSpy (1.6.7) is available online. OntoSpy is a lightweight Python library and command line tool for inspecting and visualizing vocabularies encoded in the RDF family of languages.

    This update includes support for Python 3, plus various other improvements that make it easier to query semantic web vocabularies using OntoSpy’s interactive shell module. To find out more about Ontospy:

  • Docs: http://ontospy.readthedocs.org
  • CheeseShop: https://pypi.python.org/pypi/ontospy
  • Github: https://github.com/lambdamusic/ontospy

  • Here’s a short video showing a typical sessions with the OntoSpy repl:

    What’s new in this release

    The main new features of version 1.6.7:

  • added support for Python 3.0 (thanks to a pull request from https://github.com/T-002)
  • the import [file | uri | repo | starter-pack] command that makes it easier to load models into the local repository. You can import a local RDF file or a web resource via its URI. The repo option allows to select an ontology by listing the one available in a couple of online public repositories; finally the starter-pack option can be used to download automatically a few widely used vocabularies (e.g. FOAF,DC etc..) into the local repository – mostly useful after a fresh installation in order to get started
  • the info [toplayer | parents | children | ancestors | descendants] command allows to print more detailed info about entities
  • added an incremental search mode based on text patterns e.g. to reduce the options returned by the ls command
  • calling the serialize command at ontology level now serializes the whole graph
  • made the caching functionality version-dependent
  • added json serialization option (via rdflib-jsonld)
  • Install/update simply by typing pip install ontospy -U in your terminal window (see this page for more info).

    Coming up next

    I’d really like to add more output visualisations e.g. VivaGraphJS or one of the JavaScript InfoVis Toolkit.

    Probably even more interesting, I’d like to refactor the code generating visualisations so that it allows people to develop their own via a standard API and then publishing them on GitHub.

    Lastly, more support for instance management: querying and creating instances from any loaded ontology.

    Of course, any comments or suggestions are welcome as usual – either using the form below or via GitHub. Cheers!

     

    ]]>
    2783