Using Open Calais with AllegroGraph 53 Requirements and Design of the Semantic Web Portal Web Appli- cation

15.1. Exporting to OpenOffice.org Spreadsheets . . . . . . . . . . . . . . . 59 15.2. Exporting to PostgreSQL Databases . . . . . . . . . . . . . . . . . . 59

V. Sample Application: Semantic Web Enabled Web Site 61

16. Requirements and Design of the Semantic Web Portal Web Appli- cation

63 17. Web Application Back End Implementation 65 18. Web Interface for the Semantic Web Portal 67 18.1. Introduction to AllegroServe . . . . . . . . . . . . . . . . . . . . . . 67 18.2. Introduction to Web Actions . . . . . . . . . . . . . . . . . . . . . . 67 18.3. Dojo and Javascript for the Web Interface . . . . . . . . . . . . . . . 67 18.4. Web Application Implementation . . . . . . . . . . . . . . . . . . . . 67 Biliography 69 v vi List of Figures 1.1. Example Semantic Web Application . . . . . . . . . . . . . . . . . . 2 vii viii List of Tables ix x Preface This book was written for both professional Common Lisp developers and home hobbyists who already know how to program in Common Lisp and who want to learn practical Semantic Web programming techniques using the AllegroGraph libraries from Franz. Inc. TBD Acknowledgements People who contributed technical ideas for this book TBD People who contributed technical edits for this book TBD People who contributed copy edits to the material for this book Carol Watson xi xii

1. Introduction

1.1. Who is is this book written for? There are many books on the Semantic Web and good tutorials and software on the web. However, there is not a single reference for Common Lisp developers who want to use AllegroGraph for development using technologies like RDFRDFSOWL modeling, descriptive logic reasoners, and the SPARQL query language. If you own a Franz Lisp and AllegroGraph development license, then you are set to go, as far as using this book. If not, you need to download and install a free non- commercial use licensed copy at: http:www.franz.comdownloadsclpagle survey Franz Inc. has provided support for my writing this book in the form of technical re- views and my understanding is that even though you will need to periodically refresh your free non-commercial license, there is no inherent time limit for non-commercial use. 1.2. Why is a PDF copy of this book available free on the web? As an author I want to both earn a living writing and have many people read and enjoy my books. By offering for sale the print version of this book I can earn some money for my efforts and also allow readers who can not afford to buy many books or may only be interested in a few chapters of this book to read it from my web site. Please note that I do not give permission to post the PDF version of this book on other people’s web sites: I consider this to be at least indirectly commercial exploitation in violation the Creative Commons License that I have chosen for this book. 1 Information Sources web sites, relational databases, document repositories Typical Semantic Web Application Data to RDF Filters RDF Reository RDFRDFSOWL APIs Application Program Figure 1.1.: Example Semantic Web Application

1.3. Book Software

You can download a large ZIP file containing all code and test data used in this book from the URL: http:markwatson.comopencontentag_semantic_web_code.zip TBD: This file may not be available until January 2009 All the example code is covered by the KnowledgeBooks.com non-commercial use license for free non-commercial use. If you need to use the book software in a com- mercial context, a KnowledgeBooks.com commercial use license for all software ex- amples costs 50 per individual developer with no extra cost for deployment. This fee can be paid via a PayPal link on the http:markwatson.comproducts web page. The book examples are organized by chapters and each subdirectory combines the chapter number with some descriptive text. chapter_02_quick_start chapter_06_rdf chapter_07_sparql chapter_08_reasoning chapter_09_prolog chapter_10_entity_extraction chapter_11_auto_tagging 2