Welcome

OWLLib 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.

Download

The latest release is version 1.0. It can be downloaded from SourceForge.net

Installation

There are two packages:

  • owllib-src-{version}.zip
  • owllib-{version}.zip

owllib-src-{version}.zip

This 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}.zip

This package contains only the library. To install it:

  • unzip the content of the archive.
  • include OWLLib.php, OWLParser.php, OWLMemoryOntology.php
  • load ontology
  • get root class

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); 
	

Hosted by:
SourceForge Logo