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

Add Property does not work for adding rdfs:label #44

Open seebi opened 10 years ago

seebi commented 10 years ago

steps to see this issue:

Problem: label widget is not inserted

white-gecko commented 10 years ago

For me even the „Add Instance“-Button doesn't work (tested on http://develop.demo.ontowiki.eu/)

splattater commented 10 years ago

We can reproduce Natanael's problem. The error is thrown in rdfa.js, see console output after clicking "Add Instance" button.

We checked the HTML source of the resource list for Concept and got these triples from RDFa Distiller [1]. The base is missing, but used and the postfix of the object behind 'update:defaultGraph' is missing, too.

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix update: <http://ns.aksw.org/update/> .

skos:Concept a rdfs:Class;
    rdfs:label "Concept" .

<> update:defaultGraph skos: .

<http://www.w3.org/2004/02/skos/core#Concept/test> a skos:Concept .

skos: update:queryEndpoint <http://develop.demo.ontowiki.eu/sparql/>;
    update:updateEndpoint <http://develop.demo.ontowiki.eu/update/> .

Do you have any idea when and where the wrong RDFa is written?

[1] http://www.w3.org/2012/pyRdfa/#distill_by_input

white-gecko commented 10 years ago

Everything seams to work fine now.

I could follow all steps except for “click on Add Property and choose label” because the label widget was there already.

(Side note: if I remove a property with the “-” button, I can't re-add it with “Add Property”.)

splattater commented 10 years ago

I know. We are testing at the moment. What we've done so far was re-importing the knowledge base after analyzing the source. We deleted the @base statement and removed OntoWiki generated triples for owl:Ontology. Skos delivers 'http://www.w3.org/2004/02/skos/core' as URI. OntoWiki uses 'http://www.w3.org/2004/02/skos/core#' when importing via LOV.