Skip to main content

N3Logic: A logical framework for the World Wide Web


The Semantic Web drives toward the use of the Web for interacting with logically interconnected data. Through knowledge models such as Resource Description Framework (RDF), the Semantic Web provides a unifying representation of richly structured data. Adding logic to the Web implies the use of rules to make inferences, choose courses of action, and answer questions. This logic must be powerful enough to describe complex properties of objects but not so powerful that agents can be tricked by being asked to consider a paradox. The Web has several characteristics that can lead to problems when existing logics are used, in particular, the inconsistencies that inevitably arise due to the openness of the Web, where anyone can assert anything. N3Logic is a logic that allows rules to be expressed in a Web environment. It extends RDF with syntax for nested graphs and quantified variables and with predicates for implication and accessing resources on the Web, and functions including cryptographic, string, math. The main goal of N3Logic is to be a minimal extension to the RDF data model such that the same language can be used for logic and data. In this paper, we describe N3Logic and illustrate through examples why it is an appropriate logic for the Web.

Hide All
The Official Python Programming Language Web site:
Adida B. and Birbeck M. 2006. RDF/A Primer 1.0. Embedding RDF in XHTML. W3C Working Draft.
Altheim M., Anderson B., Hayes P., Menzel C., Sowa J. F., and Tammet T. 2005. SCL: Simple Common Logic.
Appel A. W. and Felten E. W. 1999. Proof-carrying authentication. In 6th ACM Conference on Computer and Communications Security. Kent Ridge Digital Labs, Singapore.
Baader F., Calvanese D., McGuinness D., Nardi D., and Patel-Schneider P., Eds. 2003. The Description Logic Handbook. Cambridge University Press, Cambridge, UK.
Beckett D. 2006. Turtle—Terse RDF triple language.
Berners-Lee T. 1980. ENQUIRE V 1.1 manual.
Berners-Lee T. 1998. Notation 3 (N3) A readable RDF syntax.
Berners-Lee T. 2000. Cwm: General-purpose data processor for the Semantic Web.
Berners-Lee T. 2005. Primer: Getting into RDF and Semantic Web using N3.
Berners-Lee T. and Connolly D. 2004. Delta: An ontology for the distribution of differences between RDF graphs.
Brickley D. and Miller L. 1999. Friend of a friend (foaf) project.
Carroll J. J. and Klyne G. 2004. Resource Description Framework (RDF): Concepts and Abstract Syntax. Tech. Rep., W3C. February.
Dumbill E. 2002. Finding friends with XML and RDF.
Foundation O. OpenID 2007.
Gallaire H. and Minker J., Eds. 1978. Logic and Data Bases. Perseus Publishing, Boulder, CO, USA.
Genesereth M. R. 1998. Knowledge interchange format. Draft proposed American National Standard (dpANS). NCITS.T2/98-004.
Hazaël-Massieux D. and Connolly D. 2005. Gleaning Resource Descriptions from Dialects of Languages (GRDDL), W3C team submission.
Jacobs I. and Walsh N. 2004. The Architecture of the World Wide Web. W3C recommendation.
Kagal L., Berners-Lee T., Connolly D., and Weitzner D. 2006. Using Semantic Web technologies for open policy management on the Web. In 21st National Conference on Artificial Intelligence. Boston, MA.
Kalyanpur A., Parsia B., Sirin E., Cuenca-Grau B., and Hendler J. 2005. Swoop: A “Web” ontology editing browser. Journal of Web Semantics 4 (2), 144153.
Kolovski V., Katz Y., Hendler J., Weitzner D., and Berners-Lee T. 2005. Towards a policy-aware Web. In Semantic Web and Policy Workshop at the 4th International Semantic Web Conference. Boston, MA.
Parsia B., Katz Y., and Clark K. 2005. Pychinko: Rete-based RDF friendly rule engine.
Roo J. D. 2005. Euler proof mechanism.
Shapiro S. Fall 2005. Classical logic. In The Stanford Encyclopedia of Philosophy, Zalta E. N., Ed.
Steele G. L. and Sussman G. J. Scheme 1975.
Recommend this journal

Email your librarian or administrator to recommend adding this journal to your organisation's collection.

Theory and Practice of Logic Programming
  • ISSN: 1471-0684
  • EISSN: 1475-3081
  • URL: /core/journals/theory-and-practice-of-logic-programming
Please enter your name
Please enter a valid email address
Who would you like to send this to? *



Full text views

Total number of HTML views: 1
Total number of PDF views: 32 *
Loading metrics...

Abstract views

Total abstract views: 395 *
Loading metrics...

* Views captured on Cambridge Core between September 2016 - 23rd November 2017. This data will be updated every 24 hours.