- From: Marja Koivunen <marja@annotea.org>
- Date: Thu, 24 Feb 2005 19:56:19 -0500
- To: Eric Prud'hommeaux <eric@w3.org>, public-annotea-dev@w3.org
Eric,
I tested the html interface to the bookmark server before trying out my
mozilla code. What am I doing wrong?
(I see I forgot to delete the OWL:sameAs part but I don't think that was
a problem.)
Marja
1) I created bookmark and a topic by using the html interface and the
following RDF. This worked fine, no problems although I'm not sure if I
can create several bookmarks/topics at the same time yet.
<?xml version="1.0"?>
<RDF:RDF xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:bm="http://www.w3.org/2002/01/bookmark#"
xmlns:a="http://www.w3.org/2000/10/annotation-ns#"
xmlns:OWL="http://www.w3.org/2002/07/owl#"
xmlns:RDFS="http://www.w3.org/2000/01/rdf-schema#"
xmlns:NC="http://home.netscape.com/NC-rdf#"
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<bm:Topic RDF:about="urn:uid:24b15a43-1c8c-464d-895a-307dc4ed41ca"
dc:title="Writers"
dc:date="2003-05-16T00:24:05-05:00"
a:created="2003-05-16T00:24:05-05:00"
dc:creator="Marja"
dc:description="Famous writers">
<OWL:sameAs
RDF:resource="http://www.annotea.org/uid/24b15a43-1c8c-464d-895a-307dc4ed41ca"/>
<bm:subTopicOf
RDF:resource="urn:uid:1a23d05b-4dbb-4f77-9c47-141e28827dbc"/>
</bm:Topic>
<bm:Bookmark
RDF:about="urn:uid:2903d1d7-307f-493e-a9fe-b376570aa4d4"
dc:title="JRR Tolkien Biography - The Tolkien Society"
a:created="2003-05-16T03:41:06-05:00"
dc:creator="Marja"
dc:description="J.R.R. Tolkien was inspired by
Kalevala and used Finnish language as the basis for elve language">
<dc:date>2003-05-16T03:41:06-05:00</dc:date>
<dc:date>Thu, 21 Oct 2004 22:11:03 GMT</dc:date>
<OWL:sameAs RDF:resource="#ambookmark4"/>
<RDFS:seeAlso RDF:resource="http://tolkien.cro.net/"/>
<RDFS:seeAlso RDF:resource="http://www.glyphweb.com/arda/"/>
<bm:recalls
RDF:resource="http://www.tolkiensociety.org/tolkien/biography.html"/>
<bm:hasTopic
RDF:resource="urn:uid:24b15a43-1c8c-464d-895a-307dc4ed41ca"/>
</bm:Bookmark>
</RDF:RDF>
2) I then used query bookmark interface to find all bookmarks and their
topics on the server (all fields of the query before this were empty and
I just changed the topic? part in the model query):
(ask
'((rdf:type ?bookmark b:Bookmark)
(b:recalls ?bookmark ?recalls)
(b:hasTopic ?bookmark ?topic)
) :collect '(?bookmark ?recalls ?topic))
Got the following error:
expected '', got '(' at "(ask
'((rdf:t"
:0:0(0)
(ask
^
W3C::Util::YappDriver::MesgYappContextException thrown at
/home/iggy/module-inst/local/share/perl/5.6.1/W3C/Util/YappDriver.pm:86
W3C::Util::YappDriver::MesgYappContextException::new(...) at
AlgaeParser.yp:358
W3C::Rdf::_AlgaeParser::_Error(...) at
/home/iggy/module-inst/local/share/perl/5.6.1/W3C/Util/YappDriver.pm:586
W3C::Util::YappDriver::__ANON__(...) at
/home/iggy/module-inst/local/share/perl/5.6.1/W3C/Util/YappDriver.pm:496
Parse::Yapp::Driver::_Parse(...) at
/home/iggy/module-inst/local/share/perl/5.6.1/W3C/Util/YappDriver.pm:169
Parse::Yapp::Driver::YYParse(...) at
/home/iggy/module-inst/local/share/perl/5.6.1/W3C/Util/YappDriver.pm:587
(eval) at
/home/iggy/module-inst/local/share/perl/5.6.1/W3C/Util/YappDriver.pm:585
W3C::Util::YappDriver::parse(...) at AlgaeParser.yp:449
W3C::Rdf::_AlgaeParser::parse(...) at
/home/iggy/module-inst/local/share/perl/5.6.1/W3C/Rdf/Algae2.pm:137
W3C::Rdf::Algae2::interpret(...) at
/home/iggy/module-inst/local/share/perl/5.6.1/W3C/Rdf/CGIApp.pm:479
W3C::Rdf::CGIApp::QueryObject::algaeReq(...) at ./bookmark:664
W3C::Annotations::cgibin::BookmarkScript::execute(...) at ./bookmark:260
(eval) at ./bookmark:249
Session-id: 1109291136.548325
Received on Friday, 25 February 2005 00:56:32 UTC