GoodRelations Ontologies in Fluent Editor

Using GoodRelations with Fluent Editor


GoodRelations is a lightweight ontology for annotating offerings and other aspects of e-commerce on the Web. It is the only OWL DL ontology officially supported by both Google and Yahoo. [1]
Here we present how to utilize GoodRelations for constructing your own ontology with Fluent Editor. 

To download GoodRelations, visit their official website.

Using GoodRelations as a Reference

To include GoodRelations in your ontology, defining it as a reference is enough.  

[gr] '' ('').

After you add a new reference,  FE will automatically validate it and shows the result on the bottom.  

If the reference is valid, you can view and use identifiers and relations in it through HintBox. When writing new CNL sentences, you can get hints from the HintBox on how the next word should be written as well as predicted words, including those collected from the references.
If the reference you defined in your ontology includes its own references, they will be retrieved as well. As in below image, HintBox not only displays the contents in [gr] but also references in [gr], such as [schema]
To call the HintBox, press Ctrl +Space. 

Now you can write your own ontology using GoodRelations. The following ontology example is excerpted from and imported into CNL via FluentEditor.

To see the contents of the reference, click the small button on the right side of the reference name and select 'Import In a New FE Window'.

If the opening reference is in OWL/RDF format, FE automatically attemps to import it into CNL by popping up an Import Window as follows. Click the 'Import' button  on the button-right side.

Below shows the original GoodRelations ontology after importing in CNL format.


Viewing Annotations

If there are OWL annotations on elements in OWL/RDF files you reference, Fluent Editor can display them via Annotation Window. Annotations to be displayed are in accordance with the OWL standards .
To see the annotation about a certain element from OWL/RDF file, simply click the element as below.

You can check the original annotation for unit-price-specification[gr] in here.

Previewing CNLs in XML Format

Instead of exporting the whole CNL file into other format, it is possible to take a preview of CNL sentences you select in OWL/RDF format.
After opening XML Preview window, set the XML format(OWL or RDF) in which you want to preview. Then clicking the sentence will instantly show you how it will be converted.  

Fig1. - XML Preview in OWL/XML

Fig2. - XML Preview in RDF/XML

Asking Reasoner for Specific Knowledge

A reasoner retrieves knowledge from your ontology that answers your FE questions, even those defined in references.   

While writing questions, HintBox can provide you hints about how to write correct syntax as well as what kind of questions can be asked. 

However, when you enter the question the reasoner will not operate and instead it will pop up an error message as below. As the message says, this is due to the limitation of the reasoner (HermiT) that it only supports data types defined in OWL2. In other words, in GoodRelations there is some data type called time[XMLSchema] which is not one of OWL2 data types, and this causes an error for the reasoner. 


In order to use the reasoner, this unsupported data type in GoodRelations has to be removed. A workaround for this is, instead of directly referencing the external link, you can reference the locally saved GoodRelations which does not include the sentences that cause errors.
For example, after importing GoodRelations into CNL format data types in the sentences shown below should be corrected, such as replacing time[XMLSchema] with datetime.

Every-single-thing opens[gr] nothing-but (some time[XMLSchema] value).
Every-single-thing closes[gr] nothing-but (some time[XMLSchema] value).

Next, export this CNL into either OWL or RDF file. In this example, let's say the full file path will be C:\Temp\gr_locally_edited.rdf.

Then, in your ontology the refererence [gr] has to be replaced with this file.

[gr] '' ('C:\Temp\gr_locally_edited.rdf').

Since CNL is compatible with OWL/RDF, you can also save the edited GoodRelations file as in CNL format without the need of exporting it into OWL/RDF.

[gr] '' ('C:\Temp\gr_locally_edited.encnl').

Referencing this CNL file will operate identically as shown in the below reasoning image.

Now everything is set. When you try reasoning it should return the retrieved knowledge for your questions. tions.



  1. GoodRelations