Search Mailing List Archives
[protege-discussion] Classselect and grid component for webprotege
csongor.nyulas at stanford.edu
Thu Nov 3 14:17:08 PDT 2011
First of all, it is great that you managed to fix the
PropertyFieldPortlet. I'll test your solution, and if it turns out to be
the right fix, I will commit it in the SVN.
Although both the "Collaborative Newspaper" and the "Collaborative
Pizza" project uses the PropertyFieldWidget you have rightly observed
that they used different component types to collect the Domain
information. While the "Collaborative Pizza" project is configured to
use the component of type "classselect" for both the range and the
domain property, the "Collaborative Newspaper" project uses
component_type "grid" for domain.
You can see this in the configuration file of the Collaborative Newspaper:
at lines 118-119. The entire "Details for /PROP_NAME/" widget is set up
between lines 54-152.
You can also observe that the "Collaborative Newspaper" project is a
Protege Frames project, so the domain property has special name
(":DIRECT-DOMAIN") and setting up the range (i.e. allowed values) is
very different from OWL.
On 11/3/2011 12:06 PM, Philip Yeo wrote:
> Hi there,
> I was wondering if someone could help me out with my situation. I am
> currently working on getting the PropertyFieldPortlet as illustrated
> by the sample of Collaborative Pizza ontology below running for my
> project. However, I understand that there is problem with adding
> Domain and Range in this portlet. Whenever I click on the “Add” green
> icon, a window opens
> and closes immediately.
> (p.s. Csongor/Tania, just so you know - I've managed to solve this
> problem already, in line 38 of AbstractSelectionFieldWidget.java,
> simply change Anchor addLink = new Anchor(" <img
> src=\"images/add.png\"></img>", true, ""); to Anchor addLink = new
> Anchor(" <img src=\"images/add.png\"></img>", true);
> The previous code had used the new Anchor() with 3 parameters, the 3rd
> parameter being the href that the anchor links to. Somehow when
> passing no value causes it to reference back to the main page.)
> Anyhow, continuing on, while studying this problem I noticed that
> another portlet in the Collaborative Newspaper
> (http://webprotege.stanford.edu/#Collaborative Newspaper) ontology as
> illustrated in the attached doc seems to work fine. I do not face the
> same problem when I click on the “Add Domain” green icon. Furthermore
> this seems to be a different component type for the domain section
> (possibly of grid component_type).
> My questions are:
> • Is the “details for" portlet in the properties tab of
> http://webprotege.stanford.edu/#Collaborative Newspaper using
> in its weblayout configuration file?
> • If it is, then what component type is used for the “Attached as
> template slot to “ subsection of the portlet (in this case, where the
> ‘domain’ is shown).
> • And if it is, would you be able to share with us the configuration
> setting for that tab as I was unable to find it in the existing
> examples downloaded
> -- see attached doc for printscreens.
> Many thanks and regards,
> Philip Yeo
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the protege-discussion