Hello,
I made an user script for Operator (the last version : 0.9.1) and that may be interrest you, because I use the RDFa data in SIOC. This is a very simple script. It allows to check if a post is referenced on delicious :
var sioc_delicious = {
description: "Explore URL with Delicious",
scope: {
semantic: {
"RDF" : {
/* property which is concerned by this action */
property : "
http://purl.org/dc/elements/1.1/title",
defaultNS : "
http://rdfs.org/sioc/ns#",
}
}
},
doAction: function(semanticObject, semanticObjectType) {
if (semanticObjectType == "RDF") {
var so = semanticObject;
var subject = so.subject;
var type = so.model.getProperty(subject, "
http://www.w3.org/1999/02/22-rdf-syntax-ns#type");
if (type == "
http://rdfs.org/sioc/types#BlogPost") {
return "
http://del.icio.us/url?url=" + subject;
}
}
}
};
SemanticActions.add("sioc_delicious", sioc_delicious);
You can test this script on my blog (
http://www.lespetitescases.net)
I would like to make more complex scripts, but the operator API is not documented and, apparently, there are again some bugs.
If somebody are interrested, I can send the beginning of my source code.
Cheers
Gautier