Online SWI-Prolog RDF parser demo
This page provides an online demonstration of an RDF parser written in
SWI-Prolog.
This RDF parser has a couple of attractive properties:
- Small
-
Both in terms of source-code (< 700 lines) and executable.
- Fast
-
Parses about 400 Kbytes/sec on a Pentium-II/450.
- Conforming
-
This parser conforms to
http://www.w3.org/TR/REC-rdf-syntax.
- Prolog based
-
Many people regard the Prolog programming language a good vehicle to
reason about RDF statements. Having a simple and fast Prolog-based RDF
parser makes life easier.
- Portability
-
The RDF parser itself is written in ISO Prolog. The XML parser is
written in ANSI-C. There is no standard for interfacing Prolog and C,
but the interface is relatively small.
A more detailed description of this packages is available in in this document. The sources of the parser are
included into the sgml
packages for SWI-Prolog. The individual source files can also be
examined through the
cvsweb service, which also provides access to the most recent
changes
Please write your RDF description into the text-area below or select a
local file using the File: item and submit it. If anything goes
wrong, please mail Jan
Wielemaker.
The RDF-data submitted is kept anonymously on our server and
might be used by us to examine problems with our RDF parser. We do not
publish this material. The result-page provides a form for
attaching a comment to the stored RDF statement.
Notes
rdf:resource, etc.
The specification and discussion on the rdf interest group yielded no
satisfactory solution how to deal with RDF attributes that are not in
the RDF namespace such as ID, resource, etc. This parser
interprets such attributes in the namespace of the element, so the
statement below is not interpreted as a propertyElt with value
me
but as a typedNode with predicate
resource
and value literal(me).
<s:Creator resource="#me">