<http://www.siderean.com/ia/data/bookdemo/book#13>
a book:Novel , book:Book ;
dc:coverage <http://www.siderean.com/ia/data/bookdemo/place#sanfrancisco> ;
dc:creator <http://www.siderean.com/ia/data/bookdemo/author#6> ;
dc:date "1904" ;
dc:description """
A gentle literary critic, Humphrey Van Weyden, falls into San Francisco Bay and is rescued by Wolf Larson,
captain of a seal-hunting ship, the Ghost. Van Weyden would have been better off in the bay.
""" ;
dc:title "The Sea Wolf" ;
book:price "2295"^^xsd:int .
| address | http://api.talis.com/stores/phermans-dev1/meta |
| method | POST |
| mime-type | application/rdf+xml |
curl -H "Content-type: application/rdf+xml" --digest -u user:password -d @/Path/to/mybooks.rdf http://api.talis.com/stores/phermans-dev1/meta
<rdf:Description rdf:about="http://api.talis.com/stores/phermans-dev1/config/fpmaps/1">And then the mapping itself (2 examples)
<frm:mappedDatatypeProperty rdf:resource="http://api.talis.com/stores/phermans-dev1/config/fpmaps/1#title"/>
<frm:mappedDatatypeProperty rdf:resource="http://api.talis.com/stores/phermans-dev1/config/fpmaps/1#label"/>
<frm:mappedDatatypeProperty rdf:resource="http://api.talis.com/stores/phermans-dev1/config/fpmaps/1#description"/>
<frm:mappedDatatypeProperty rdf:resource="http://api.talis.com/stores/phermans-dev1/config/fpmaps/1#name"/>
<frm:mappedDatatypeProperty rdf:resource="http://api.talis.com/stores/phermans-dev1/config/fpmaps/1#date"/>
<frm:mappedDatatypeProperty rdf:resource="http://api.talis.com/stores/phermans-dev1/config/fpmaps/1#price"/>
...
<rdf:type rdf:resource="http://schemas.talis.com/2006/bigfoot/configuration#FieldPredicateMap"/>
<rdfs:label>default field/predicate map</rdfs:label>
</rdf:Description>
<rdf:Description rdf:about="http://api.talis.com/stores/phermans-dev1/config/fpmaps/1#title">
<frm:name>title</frm:name>
<frm:property rdf:resource="http://purl.org/dc/elements/1.1/title"/>
</rdf:Description>
<rdf:Description rdf:about="http://api.talis.com/stores/phermans-dev1/config/fpmaps/1#date">
<frm:name>date</frm:name>
<frm:property rdf:resource="http://purl.org/dc/elements/1.1/date"/>
</rdf:Description>
Having done this configuration, we need to load this into our store:
| address | http://api.talis.com/stores/phermans-dev1/config/fpmaps/1 |
| method | PUT |
| mime-type | application/rdf+xml |
curl -H "Content-type: application/rdf+xml" --digest -u user:password -X PUT
-d @/Path/to/myfieldpredicatemap.rdf http://api.talis.com/stores/phermans-dev1/config/fpmaps/1
<rdf:Description rdf:about="http://api.talis.com/stores/phermans-dev1/config/queryprofiles/1">
<j.1:fieldWeight rdf:resource="http://api.talis.com/stores/phermans-dev1/config/queryprofiles/1#name"/>
<j.1:fieldWeight rdf:resource="http://api.talis.com/stores/phermans-dev1/config/queryprofiles/1#description"/>
<j.1:fieldWeight rdf:resource="http://api.talis.com/stores/phermans-dev1/config/queryprofiles/1#label"/>
<j.1:fieldWeight rdf:resource="http://api.talis.com/stores/phermans-dev1/config/queryprofiles/1#title"/>
<j.1:fieldWeight rdf:resource="http://api.talis.com/stores/phermans-dev1/config/queryprofiles/1#date"/>
<rdf:type rdf:resource="http://schemas.talis.com/2006/bigfoot/configuration#QueryProfile"/>
<rdfs:label>default query profile</rdfs:label>
</rdf:Description>
Then the weights themselves:
<rdf:Description rdf:about="http://api.talis.com/stores/phermans-dev1/config/queryprofiles/1#name">
<j.1:weight>2.0</j.1:weight>
<j.0:name>name</j.0:name>
</rdf:Description>
Upload to the server:
| address | http://api.talis.com/stores/phermans-dev1/config/queryprofiles/1 |
| method | PUT |
| mime-type | application/rdf+xml |
curl -H "Content-type: application/rdf+xml" --digest -u user:password -X PUT -d @/Users/paul/qp.rdf
http://api.talis.com/stores/phermans-dev1/config/queryprofiles/1
This didn't seem to have any impact on my queries yet; so I decided to reindex the store.
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:bf="http://schemas.talis.com/2006/bigfoot/configuration#" >
<bf:JobRequest>
<rdfs:label>Reindex the RDF in my store</rdfs:label>
<bf:jobType rdf:resource="http://schemas.talis.com/2006/bigfoot/configuration#ReindexJob"/>
<bf:startTime>2009-08-07T16:30:00Z</bf:startTime>
</bf:JobRequest>
</rdf:RDF>
Remark: Make sure you get the startTime right, otherwise you have a long wait ...
Comments