WelcomeOWLLib is PHP library for accessing OWL files. If you want to check what is implemented in the library try to browse one of the available ontologies on this server. DownloadThe latest release is version 1.0. It can be downloaded from SourceForge.net InstallationThere are two packages:
owllib-src-{version}.zipThis package contains everything what is on this page. To install it simply unzip all files from the zip package to the document root directory of you web server. owllib-{version}.zipThis package contains only the library. To install it:
Sample code to open ontology: require_once "owllib/OWLLib.php"; require_once "$OWLLIB_ROOT/reader/OWLReader.php"; require_once "$OWLLIB_ROOT/memory/OWLMemoryOntology.php"; ... $reader = new OWLReader(); $ontology = new OWLMemoryOntology(); $reader->read($filename, $ontology); $class = $ontology->getClass($id); |