Skip to content

MaastrichtU-IDS/audioset-owl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Generate documentation Run notebook

A Jupyter Notebook to edit the AudioSet ontology

Start JupyterLab

Start JupyterLab locally from the root folder of the git repository:

docker run --rm -it -p 8888:8888 -v $(pwd):/notebooks -e PASSWORD="<your_secret>" umids/jupyterlab:latest

Generate docs

See Ontospy documentation: http://lambdamusic.github.io/Ontospy

Install Ontospy:

pip install ontospy[FULL]

Using Ontospy, from the commandline:

ontospy gendocs -o docs https://raw.githubusercontent.com/MaastrichtU-IDS/ontology-editor-audioset/master/ontologies/audioset.rdf

Choose the visualization type

We are generating 4 differents pages in subfolder of the docs/ folder. The folder where the documentation will be generated needs to exist:

mkdir -p docs/summary
ontospy gendocs -o docs/summary --type 1 --nobrowser ontologies/audioset.rdf
# >1

mkdir -p docs/browse
ontospy gendocs -o docs/browse --type 2 --nobrowser ontologies/audioset.rdf
# >2

mkdir -p docs/classtree
ontospy gendocs -o docs/classtree --type 4 --nobrowser ontologies/audioset.rdf
# >4

mkdir -p docs/graph
ontospy gendocs -o docs/graph --type 10 --nobrowser ontologies/audioset.rdf
# >10

See the source code for more details on parameters.

The Graph visualisation can be improved at:

See also

WebVOWL, d3.js graph viewer:

http://www.visualdataweb.de/webvowl/#iri=https://raw.githubusercontent.com/MaastrichtU-IDS/ontology-editor-audioset/master/ontologies/audioset.rdf

Original AudioSet Ontology license

The ontology is made available by Google Inc. under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.