<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/cl-ntriples/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/cl-ntriples/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 18 Dec 2012 12:27:49 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cl-ntriples/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Home modified by Victor Anyakin</title><link>https://sourceforge.net/p/cl-ntriples/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v10
+++ v11
@@ -19,7 +19,7 @@
 Either ASDF-INSTALL using the latest distribution in the [releases folder](https://sourceforge.net/projects/cl-ntriples/files/releases/). Or go the modern way:

 ~~~~~~
-:::lisp
+:::common lisp
 (ql:quickload "cl-ntriples")
 ~~~~~~

@@ -30,6 +30,7 @@
 CL-NTRIPLES was developed for a practical purpose of accessing the wealth of data accumulated by the DBPedia project. For example, let's query information about a Ukrainian city of Chernihiv (wiki, dbpedia):

 ~~~~
+:::common lisp
 (defvar page-url "http://dbpedia.org/data/Chernihiv.ntriples")
 (defvar *res* (nt:parse-nt (drakma:http-request page-url)))
 ;; *res* now contains a list of triples, let's query some predicates
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Victor Anyakin</dc:creator><pubDate>Tue, 18 Dec 2012 12:27:49 -0000</pubDate><guid>https://sourceforge.netf6f04a4de27fc0d367ac4a410cbad26c74c14e8a</guid></item><item><title>WikiPage Home modified by Victor Anyakin</title><link>https://sourceforge.net/p/cl-ntriples/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v9
+++ v10
@@ -11,6 +11,17 @@
 Check also the [Semantic Web page](http://www.cliki.net/Semantic%20Web) on CLiki.

 [Project page on Sourceforge.](http://sourceforge.net/projects/cl-ntriples/)
+
+
+Installation
+============
+
+Either ASDF-INSTALL using the latest distribution in the [releases folder](https://sourceforge.net/projects/cl-ntriples/files/releases/). Or go the modern way:
+
+~~~~~~
+:::lisp
+(ql:quickload "cl-ntriples")
+~~~~~~

 Sample usage
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Victor Anyakin</dc:creator><pubDate>Tue, 18 Dec 2012 12:23:16 -0000</pubDate><guid>https://sourceforge.netbe46c87d1717abbe1711db85d3d8a942cb018b40</guid></item><item><title>WikiPage Home modified by Victor Anyakin</title><link>https://sourceforge.net/p/cl-ntriples/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -56,6 +56,8 @@
 * `PREDICATE? triples predicate &amp;amp;key lang data-type`
 filters out triples with matching predicates. Additional parameters (lang and data-type) can be used to limit returned triples to those with matching language and data type specifiers.

+* `LITERAL-STRING triple`
+returns the literal-string value of the given triple.

 Download
 ========
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Victor Anyakin</dc:creator><pubDate>Sun, 16 Dec 2012 10:07:48 -0000</pubDate><guid>https://sourceforge.nete72b923a628bcf342af5fcf4a051524a55bcae3b</guid></item><item><title>WikiPage Home modified by Victor Anyakin</title><link>https://sourceforge.net/p/cl-ntriples/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -11,9 +11,6 @@
 Check also the [Semantic Web page](http://www.cliki.net/Semantic%20Web) on CLiki.

 [Project page on Sourceforge.](http://sourceforge.net/projects/cl-ntriples/)
-
-[[download_button]]
-

 Sample usage
@@ -58,3 +55,9 @@

 * `PREDICATE? triples predicate &amp;amp;key lang data-type`
 filters out triples with matching predicates. Additional parameters (lang and data-type) can be used to limit returned triples to those with matching language and data type specifiers.
+
+
+Download
+========
+
+[[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Victor Anyakin</dc:creator><pubDate>Fri, 14 Dec 2012 10:53:07 -0000</pubDate><guid>https://sourceforge.netecc9ef8404d5f59583309fc95163d74c1556a242</guid></item><item><title>WikiPage Home modified by Victor Anyakin</title><link>https://sourceforge.net/p/cl-ntriples/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -13,6 +13,7 @@
 [Project page on Sourceforge.](http://sourceforge.net/projects/cl-ntriples/)

 [[download_button]]
+

 Sample usage
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Victor Anyakin</dc:creator><pubDate>Fri, 14 Dec 2012 10:52:37 -0000</pubDate><guid>https://sourceforge.net8100e5cb99b6ef47986ccf965db255ae9e6c88ed</guid></item><item><title>WikiPage Home modified by Victor Anyakin</title><link>https://sourceforge.net/p/cl-ntriples/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -12,6 +12,48 @@

 [Project page on Sourceforge.](http://sourceforge.net/projects/cl-ntriples/)

+[[download_button]]

-[[download_button]]
+Sample usage
+============
+
+CL-NTRIPLES was developed for a practical purpose of accessing the wealth of data accumulated by the DBPedia project. For example, let's query information about a Ukrainian city of Chernihiv (wiki, dbpedia):
+
+~~~~
+(defvar page-url "http://dbpedia.org/data/Chernihiv.ntriples")
+(defvar *res* (nt:parse-nt (drakma:http-request page-url)))
+;; *res* now contains a list of triples, let's query some predicates
+;; for brevity, predicates will defined as variables
+
+(defconstant +prop-area-total-km+ "http://dbpedia.org/property/areaTotalKm")
+(defconstant +rdf-label+ "http://www.w3.org/2000/01/rdf-schema#label")
+
+;; querying predicates is now reduced to a simple function call:
+;; nt:predicate? TRIPLES PREDICATE &amp;amp;key LANG DATA-TYPE
+
+;; what is the city area in km2?
+(nt:predicate? *res* +prop-area-total-km+)
+=&gt; (("http://dbpedia.org/resource/Chernihiv"
+  "http://dbpedia.org/property/areaTotalKm"
+  ((:LITERAL-STRING . "79")
+   (:URIREF . "http://www.w3.org/2001/XMLSchema#int"))))
+
+;; how do Japanese call this city?
+(predicate? *res* +rdf-label+ :lang "ja")
+=&gt; (("http://dbpedia.org/resource/Chernihiv"
+  "http://www.w3.org/2000/01/rdf-schema#label"
+  (:LITERAL-STRING "チェルニーヒウ" :LANG "ja")))
+~~~~
+
+
+Functions
+=========
+
+Package provides following functions:
+
+* `PARSE-NT src` 
+Parses and returns a list of triples
+
+* `PREDICATE? triples predicate &amp;amp;key lang data-type`
+filters out triples with matching predicates. Additional parameters (lang and data-type) can be used to limit returned triples to those with matching language and data type specifiers.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Victor Anyakin</dc:creator><pubDate>Fri, 14 Dec 2012 10:52:14 -0000</pubDate><guid>https://sourceforge.net72fb4716c4f281edeb0dc141c62c79ec75f38c68</guid></item><item><title>WikiPage Home modified by Victor Anyakin</title><link>https://sourceforge.net/p/cl-ntriples/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -10,5 +10,8 @@

 Check also the [Semantic Web page](http://www.cliki.net/Semantic%20Web) on CLiki.

+[Project page on Sourceforge.](http://sourceforge.net/projects/cl-ntriples/)
+
+

 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Victor Anyakin</dc:creator><pubDate>Thu, 13 Dec 2012 13:20:01 -0000</pubDate><guid>https://sourceforge.net1221a1b2ccfe0d4e463a337b2300149f1ab6b7c9</guid></item><item><title>WikiPage Home modified by Victor Anyakin</title><link>https://sourceforge.net/p/cl-ntriples/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -2,7 +2,7 @@

 Main entry function is `PARSE-NT` method that parses N-Triples from the given source. This method accepts a file pathname, an input stream, or a string.

-Returns a list of triples consisting of three elements: subject, predicate, object. Subjects can be either an `uriref` or a `nodeID`. Objects can be of three types: `uriref`, `nodeID' or a `literal`. Depending on the type of the object it is encoded into an association list.
+Returns a list of triples consisting of three elements: subject, predicate, object. Subjects can be either an `uriref` or a `nodeID`. Objects can be of three types: `uriref`, `nodeID` or a `literal`. Depending on the type of the object it is encoded into an association list.

 N-Triples data format standard definition is provided in the W3C documents:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Victor Anyakin</dc:creator><pubDate>Thu, 13 Dec 2012 12:20:19 -0000</pubDate><guid>https://sourceforge.netdd719273a13bafdc5af21be1814bbf7e2ddf06cf</guid></item><item><title>WikiPage Home modified by Victor Anyakin</title><link>https://sourceforge.net/p/cl-ntriples/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,13 +1,14 @@
 **CL-NTRIPLES** provides a simple parser for the N-Triples data format as defined by the W3C for storing RDF/Semantic information. N-Triples is a line-based, plain text format for encoding an RDF graph.

-Main entry function is parse-nt method that parses N-Triples from the given source. This method accepts a file pathname, an input stream, or a string.
+Main entry function is `PARSE-NT` method that parses N-Triples from the given source. This method accepts a file pathname, an input stream, or a string.

-Returns a list of triples consisting of three elements: subject, predicate, object. Subjects can be either an `uriref' or a `nodeID'. Objects can be of three types: `uriref', `nodeID' or a `literal'. Depending on the type of the object it is encoded into an association list.
+Returns a list of triples consisting of three elements: subject, predicate, object. Subjects can be either an `uriref` or a `nodeID`. Objects can be of three types: `uriref`, `nodeID' or a `literal`. Depending on the type of the object it is encoded into an association list.

 N-Triples data format standard definition is provided in the W3C documents:

 * [RDF Testcases, N-Triples](http://www.w3.org/TR/rdf-testcases/#ntriples)

+Check also the [Semantic Web page](http://www.cliki.net/Semantic%20Web) on CLiki.

-[[project_admins]]
+
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Victor Anyakin</dc:creator><pubDate>Thu, 13 Dec 2012 12:19:27 -0000</pubDate><guid>https://sourceforge.nete2c37dbcd3305cde222ba356cd84cbbdabb98972</guid></item><item><title>WikiPage Home modified by Victor Anyakin</title><link>https://sourceforge.net/p/cl-ntriples/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,13 @@
-Welcome to your wiki!
+**CL-NTRIPLES** provides a simple parser for the N-Triples data format as defined by the W3C for storing RDF/Semantic information. N-Triples is a line-based, plain text format for encoding an RDF graph.

-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
+Main entry function is parse-nt method that parses N-Triples from the given source. This method accepts a file pathname, an input stream, or a string.

-The wiki uses [Markdown](/p/cl-ntriples/wiki/markdown_syntax/) syntax.
+Returns a list of triples consisting of three elements: subject, predicate, object. Subjects can be either an `uriref' or a `nodeID'. Objects can be of three types: `uriref', `nodeID' or a `literal'. Depending on the type of the object it is encoded into an association list.
+
+N-Triples data format standard definition is provided in the W3C documents:
+
+* [RDF Testcases, N-Triples](http://www.w3.org/TR/rdf-testcases/#ntriples)
+

 [[project_admins]]
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Victor Anyakin</dc:creator><pubDate>Thu, 13 Dec 2012 12:16:02 -0000</pubDate><guid>https://sourceforge.net42ecccd2c4d9b55224a72a05e2ee1bbcb5d11c22</guid></item></channel></rss>