These screenshots show how the Protégé represents OWL classes and instances. To represent the instance Protégé uses widgets conception. For every slot in OWL class it will define default user interface widget of corresponded type. User can change the default widget for something else. E.g. if you have some text slot, it can contain the URI of image. So the user can use an image widget to view image by URI. The Semantic Links area utilizes the same idea. So I have a main OWL model that contains the meaning information (catalog.owl) and the model of UI representation (uidata.owl). The model of UI representation contains definitions of UI elements. So I used OWL to represent the meaning data and UI definitions. The UI definitions determine the representation of resources. The following OWL example expresses such approach:
<Widget rdf:ID="uiformdescriptions_RDFResource_38"> <Name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">http://reflections/bcatalog#Service</Name> … <Widget rdf:ID="uiformdescriptions_RDFResource_22"> <Left rdf:datatype="http://www.w3.org/2001/XMLSchema#int" >20</Left> <Name rdf:datatype="http://www.w3.org/2001/XMLSchema#string" >http://reflections/bcatalog#ImageURI</Name> <Top rdf:datatype="http://www.w3.org/2001/XMLSchema#int">80</Top> <WidgetRealizationName rdf:datatype="http://www.w3.org/2001/XMLSchema#string" >IconWidget</WidgetRealizationName> <Caption rdf:datatype="http://www.w3.org/2001/XMLSchema#string" >Image</Caption> <Width rdf:datatype="http://www.w3.org/2001/XMLSchema#int" >300</Width> <Properties rdf:resource="#uiformdescriptions_RDFResource_15"/> <Height rdf:datatype="http://www.w3.org/2001/XMLSchema#int" >60</Height> </Widget> … </Widget> |
This example shows that widget for http://reflections/bcatalog#Service class contains widget that represents http://reflections/bcatalog#ImageURI slot. To represent slot IconWidget will be used. In the following picture the UI of http://reflections/bcatalog#Service depicted.
No comments:
Post a Comment