Search code examples
exportsparqlontologyprotegedlquery

Exporting data from ontology - Protege


How to export data from ontology to an excel sheet using Protege. For example, I want to get a table with 2 columns: Class rdf:ID, Super Class rdf:ID.


Solution

  • solved!.. From the tap SPARQL Query type the query:

    SELECT ?subject ?object
        WHERE { ?subject rdfs:subClassOf ?object }
    

    then execute and copy the result directly into an excel sheet :)