Help with Custom Form

81 views
Skip to first unread message

Pedro Paulo Favato Barcelos

unread,
Aug 18, 2021, 5:08:09 AM8/18/21
to vocbench-user
Dear community,

I am facing a strange behavior in a simple Custom Form I built.

The Custom Form is associated with the creation of a Lexical Entry in an Ontolex project. It is intended to ask the user (every time that a Lexical Entry is entered) to input a Lexical Concept URL and Label and optionally another Lexical Concept URL. The Custom Form also creates the relation evokes between the inputted Lexical Entry and Lexical Concepts. 

Seems that everything works fine, except the Vocbench's presentation of the newly created concepts. As can be seen below, a manually created concept is presented with the correct Label, while the first concept created with the Custom Form is presented with the Lexical Entry name and the Label at the same time, while the third (the optional) concept is presented only with the Entry name.

Captura de tela 2021-08-18 110102.png

Why is this happening? Is there a problem with my Custom Form code? As can be seen below, the resulting codes of both the manually created concept and the one created by the Custom Form are similar, so I really don't know why the info is displayed differently!

Captura de tela 2021-08-18 110707.pngCaptura de tela 2021-08-18 110652.png

You can find the Custom Form here attached.

Can someone please help me? =) Thank you very much in advance!

Kind regards, 
Pedro Paulo
it.uniroma2.art.semanticturkey.customform.form.testform.xml

Roland Wingerter

unread,
Aug 20, 2021, 1:09:13 PM8/20/21
to vocbench-user
Hello Pedro Paulo,

you wrote, "the first concept created with the Custom Form is presented with the Lexical Entry name and the Label at the same time".

This is the normal behavior of the VB3 rendering engine in Ontolex projects. It renders an ontolex:LexicalConcept by appending the labels of all Lexical Entries pointing to it (just like it concatenates all labels of skos:Concepts in SKOS projects). Open Multilingual Wordnet (cf. http://vocbench.uniroma2.it/doc/user/test_drive.jsf) is another example. Having worked quite a lot with Wordnets I was actually surprised to learn that an ontolex:LexicalConcept can have a label of its own.

In other words, the Lexical Concept does not require a label of its own, just delete it from your custom form.

Kind regards
Roland

Pedro Paulo Favato Barcelos

unread,
Aug 20, 2021, 2:37:12 PM8/20/21
to Roland Wingerter, vocbench-user
Hi Roland,

Thank you for your contribution!

Vocbench itself created labels for new concepts created with the default way (Concept tab, blue circle with a star icon). When adding a new concept manually, the result is the following:

:c_c694a44a a ontolex:LexicalConcept;
  rdfs:label "Test Lexical Concept"@en;
  skos:inScheme :conceptScheme_58cb06f2;
  skos:topConceptOf :conceptScheme_58cb06f2 .


First I thought Vocbench would use skos:prefLabel, as ontolex:LexicalConcept is a SubClassOf skos:Concept, but it uses rdfs:label, witch was what I used in my Custom Form.

Considering this, I still don't know why Vocbench renders differently the instance created using the default way and the instance created by my Custom Form, as both generate the same code. 

Kind regards, 
Pedro Paulo Favato Barcelos


--
You received this message because you are subscribed to a topic in the Google Groups "vocbench-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vocbench-user/KL9z4CJ5MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vocbench-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vocbench-user/b3e5fa42-e36c-4cb6-b016-5d84fad515b5n%40googlegroups.com.

Roland Wingerter

unread,
Aug 20, 2021, 5:05:22 PM8/20/21
to vocbench-user
Hi Pedro Paulo,

you wrote "I still don't know why Vocbench renders differently the instance created using the default way and the instance created by my Custom Form, as both generate the same code."

Both concepts have the "same code", but the context may be different. Note that the code only shows triples where the concepts are in subject position. So you would not see an "incoming link" like (LexEntry_URL evokes Concept_URL).

I set up a new project (Ontolex, local repository, trivialInferencer enabled=true) and imported your custom form. Then I recreated the data shown in your screenshots (one manually created concept; one entry plus two concepts created through your custom form) with the same results.

As a test, I created a new LexEntry without you custom form and a relation (LexEntry evokes Manual_Concept_URL), and guess what?
1. The code of Manual_Concept_URL remains unchanged.
2. The rendering engine appends the new entry's label to Manual_Concept_Label.

I think my test shows that Vocbench's presentation of concepts is the same, wether they are created manually or through your custom form.

Pedro Paulo Favato Barcelos

unread,
Aug 23, 2021, 4:14:30 PM8/23/21
to Roland Wingerter, vocbench-user
Hi Roland,

Thank you very much for the info. I am going to work more on the custom forms and in case of new doubts, I will post in this email thread, ok?

Have a nice weekend and once again thank you for your help!

Best regards,
Pedro Paulo Favato Barcelos


Roland Wingerter

unread,
Aug 24, 2021, 4:49:18 PM8/24/21
to vocbench-user
Hi Pedro Paulo,

thank you and good luck.

Kind regards
Roland
Reply all
Reply to author
Forward
0 new messages