diff options
author | Leo Sauermann <leo.sauermann@dfki.de> | 2009-11-08 14:41:18 +0000 |
---|---|---|
committer | Leo Sauermann <leo.sauermann@dfki.de> | 2009-11-08 14:41:18 +0000 |
commit | 04921294005965c5031622a97d2b76e16a19168c (patch) | |
tree | 07ed094058f13cdbf96a6aed254526df3bdaa41c | |
parent | de4cf249154e5503a55d428475c5447f0b5f5438 (diff) |
nso: added example.
-rw-r--r-- | nso/doc/nso-header.html | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/nso/doc/nso-header.html b/nso/doc/nso-header.html index 193f409..08b342b 100644 --- a/nso/doc/nso-header.html +++ b/nso/doc/nso-header.html @@ -78,4 +78,23 @@ The ontologies are made available under the terms of NEPOMUK <a href="LICENSE.tx This recommendation is <a href="#ontology">accompanied by a RDFS/NRL ontology</a>, which is the authorative formal
description of the ontology.</b>
</p>
-
+<h2 id="example">Example</h2>
+<p>
+ If a local file should be shared with a contact, it can be done like the following
+</p>
+<pre>
+# N3 example
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix nso: <http://www.semanticdesktop.org/ontologies/2009/11/08/nso#> .
+@prefix nfo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
+@prefix nco: <http://www.semanticdesktop.org/ontologies/2007/03/22/nco#> .
+
+<file:///home/blah.odp> a nfo:Presentation.
+<nepomuk://res/23234> a nco:Contact.
+<nepomuk://res/46252> a nco:Contact.
+<nepomuk://res/55555> a nco:ContactGroup.
+<file:///home/blah.odp> nso:sharedWithContact <nepomuk://res/23234>.
+<file:///home/blah.odp> nso:sharedWithContact <nepomuk://res/46252>.
+<file:///home/blah.odp> nso:sharedWithGroup <nepomuk://res/55555>.
+</pre>
\ No newline at end of file |