Skip to content

TurtleOWL is a simple library to generate Turtle OWL files in order to bootstrap new ontologies.

License

Notifications You must be signed in to change notification settings

zambotn/TurtleOWL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#TurtleOWL

This library is used to generate ontologies represented in OWL using Turtle dialect.

In order to use the library include it.

    import TurtleOWL

    owl = TurtleOWL("http://baseuri.example.com/MyOntology")
    
    owl.add_class("MyParentClass")
    owl.add_annotation("MyParentClass", "rdfs:label", "ParentClass")

    owl.add_class("MyChildClass", "MyParentClass")
    owl.add_annotation("MyChildClass", "rdfs:label", "ChildClass", "en")
    owl.add_annotation("MyChildClass", "rdfs:label", "ClasseFiglia", "it")

    print owl.to_turtle().encode('utf-8')

About

TurtleOWL is a simple library to generate Turtle OWL files in order to bootstrap new ontologies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages