* '''TERM Chooser widget :''' * added Autocompeter functions of Scriptaculous.js & prototype.js * !http://localhost:8080/ontocat/version0.6/scriptaculous-js-1.8.3/test/functional/test2.html * Debug autocompleter not returning results. Try to fill the table Termtokens in file /ontoCAT-restservice/WebContent/version0.6/scriptaculous-js-1.8.3/test/functional/test2.html with terms from http://localhost:8080/ontocat/rest/json/searchAll/ * '''Sparql in javascript library. '''Added the javascript library in test.html : http://sparql.org/ * Sparql added : Problem at sending sparql "A script from "!http://localhost:8080" was denied !UniversalBrowserRead privileges. Line 333" * solution http://www.mail-archive.com/public-semweb-lifesci@w3.org/msg01081.html * Failed to get privilege ?UniversalBrowserRead to open }}} {{{ Firefox security won't in general let a script from a given DNS }}} {{{ domain (like www.thefigtrees.net) read web data from a different domain. To change this, 1. Type into the main browser URI bar "about:config" and hit return to get to the config page. 2. Scroll down to the line which says signed.applets.codebase_principal_support ... user set ... boolean .. false and double-click it to change it to 'true'. 3. Go back to the web page, and try again. When the browser asks you whether to allow the script to access arbitrary web pages, agree. You probably want to check the "remember the answer this question" box. Note that this is reducing the security of your browser. You end up allowing any web page on the site to read data from the web, which could include data from inside your firewall. }}} * signed.applets.codebase_principal_support;true * Sparql in D2r. * Install Jena.[http://jena.sourceforge.net/documentation.html http://jena.sourceforge.net/documentation.html] * Download. * Set classpath to include Jena Root & d2R root * Create new project, copy & include jar fro Jena & D2R. * (D:\despoina\workspace\Jena\src\!HelloJena.java) * Using Jena's Model Api: ...[http://www4.wiwiss.fu-berlin.de/bizer/d2rq/spec/#usingmodel http://www4.wiwiss.fu-berlin.de/bizer/d2rq/spec/#usingmodel] * Use sparql in Jena * * //TODO : NExt query a local mapping file : D:\despoina\d2r\d2r-server-0.7\molgenis.n3 (the mapping was generated by d2r) * http://jena.sourceforge.net/ARQ/app_api.html * http://www.snee.com/bobdc.blog/2006/11/mapping-relational-data-to-rdf.html * '''Sparql Prefix bindings :''' * '''in javascript lib : query.setPrefix("rdf",(or rdfs, xsd,..)''' ||Prefix||IRI|| ||rdf:||!http://www.w3.org/1999/02/22-rdf-syntax-ns#|| ||rdfs:||!http://www.w3.org/2000/01/rdf-schema#|| ||xsd:||!http://www.w3.org/2001/XMLSchema#|| ||fn:||!http://www.w3.org/2005/xpath-functions#||