AKSW / RDFauthor

RDFauthor creates formular widgets out of RDFa-enhanced webpages.
http://aksw.org/Projects/RDFauthor
GNU General Public License v3.0
18 stars 5 forks source link

tests/gui-tests don't work out-of-the box #17

Closed tfrancart closed 11 years ago

tfrancart commented 11 years ago

I started from tests/gui-test/vcard.html

var RDFAUTHOR_BASE = 'http://localhost/rdfauthor';

should be replaced by

var RDFAUTHOR_BASE = document.location.href.replace('vcard.html', '../..');

Then I changed the url of the sparql endpoint to be an empty SPARQL1.1 compatible Sesame server locally running on my machine.

When loading the page, I get the rdfauthor popup, displaying only the 3 buttons "Add property", "Save" and "Cancel". Clicking on "Add property" freezes the page and does nothing. How can I get a running example of RDFAuthor with a local HTML page and a local SPARQL endpoint ?

Sorry to file this as an issue but I couldn't find another way to reach you. Thanks

cannelony commented 11 years ago

Hi, i extended the vcard.html. Maybe that helps.

  1. set RDFAUTHOR_BASE
  2. set queryEndpoint and updateEndpoint

    <link about="http://localhost/rdfauthor/test/" rel="update:queryEndpoint" href="http://localhost/sparql" /> <link about="http://localhost/rdfauthor/test/" rel="update:updateEndpoint" href="http://localhost/sparql" />

    In my case the queryEndpoint and updateEnpoint was an virtuoso sparql endpoint.

  3. specify which resource you want to edit

    If your local HTML page has more than one resource you can specify which resource you want to edit by using

    RDFauthor.start(JQUERYSELECTOR)

    otherwise RDFauthor loads the first read resource.

Regards.

seebi commented 11 years ago

Hi tfrancart, writing issues is just fine :-)

does clemens activity solves your problem?