Semantic Technologies Code Samples and Examples
Connecting Metadata Information Extractors for Semantic Indexing of Documents to Oracle Database Semantic Technologies (zip 2.9KB)

Oracle Database 11g Release 2 Semantic Technologies supports the ability to search for documents of interest based on the semantics or meaning of the words in a document, a significant enhancement over keyword-based searches supported by full-text search engines. Oracle Database Semantic Technologies interoperates with semantic metadata information extractors, such as the open source General Architecture for Text Engineering (GATE) engine and the OpenCalais semantic metadata extraction service from Thomson Reuters to locate and extract meaningful information from unstructured documents.

Semantic Technologies provides an extensible information extractor framework, which allows third-party information extractors to be plugged into Oracle Database. It provides an API to submit documents to the semantic metadata extractor for analysis, receive semantic metadata in return and create a semantic index on the documents. A new SEM_CONTAINS operator is provided to enable standard SQL queries to identify documents of interest, based on their extracted information. Detailed information can be found in the Oracle Database Semantic Technologies Developer's Guide11g Release 2 (11.2).

  • GATE engine Java sample code—provides an example of a listener implementation that interoperates with the Semantic indexing feature in Oracle Database Semantic Technologies. The sample code uses the ANNIE extraction system and is tested with GATE Release 5.0 and JDK 1.5."
  • OpenCalais—provides a Web service interface for information extraction. Setting up a Calais-based extraction involves configuring Oracle Database with a Web service end point and a SOAP Action. This is documented in the Oracle Database Semantic Technologies Developer's Guide11g Release 2 (11.2).
Oracle Jena Adaptor Examples (java 59KB)

Contains Java code examples illustrating the use of the Oracle implementation of the Jena APIs. (You will want to rename this file to Examples.java before using and customization is necessary in many cases before you can use the code in your own applications.)

10.2.0.2 Fast Batch Loader for N-Triple Files (zip 16KB)

10gR2 First Patchset Fast Batch Loader for N-Triple files: This zip file includes:

  1. The necessary files for a fast batch loader for loading N-Triple format RDF data from N-Triple files into Oracle's RDF storage.
  2. The necessary files for an incremental loader for loading N-Triple format RDF data from N-Triple files into Oracle's RDF storage.
  3. Files necessary to convert RDF models stored in Oracle's RDF storage into N-Triple format RDB data stored in N-Triple files.

The fast batch loader is recommended for fast loading of large RDF data sets into empty RDF models in Oracle's RDF store. The incremental loader can be used for loading RDF data into empty or non-empty RDF models in Oracle's RDF store. These files work for 10.2.0.2 or later.

10.2.0.1 Loader for N-Triple Files (zip 16KB)

10gR2 Loader for N-Triple files: This zip file includes the necessary files for loading N-Triple format RDF data from N-Triple files into Oracle's RDF storage, and for converting RDF models stored in Oracle's RDF storage into N-Triple format RDF data stored in N-Triple files. These files work with 10.2.0.1.

N-Triple Format to Oracle RDF Store Converter (zip 9KB) This file contains the source code for two classes which are used for loading RDF triples in N -Triple format into the Oracle RDF store. These two source files are provided as sample code for developers who would like to build their own loader for the Oracle RDF store. Note: This is required by the "10.2.0.1 Loader for N-Triple Files" above.
Beta Release of Sesame/openrdf SAIL for Oracle 10g (sourceforge)

This is a beta release of an integration of the Oracle 10g RDF support for the openrdf Sesame platform. This release includes a complete implementation of the RdfRepository SAIL interface but does not provide for query rewrites such that RDQL, etc. queries directed to a Sesame instance and answered by this SAIL will not be able to take full advantage of the RDF_MATCH table function. This release doe not include an implementation of the RdfSchemaRepository SAIL interface, but it does include a SAIL parameter which may be used to request that Oracle maintain the RDFS closure of the explicitly asserted triples.

Sample Oracle RDF Plugin for Protege (zip 1.6MB)

This plugin is developed mainly as a guideline for users who want to use Protege as a front-end for Oracle RDF data store. This Oracle RDF plugin will help Protege users to understand how to make calls to the Oracle Database to read and write RDF data.

 
E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy