![]() |
| Previous Top Next |
Making the RDF statements |
The mechanism for creating RDF statements in SemanticWorks consists of:
| • | Creating and naming the RDF resource (the subject) in the Overview of RDF/OWL View. |
| • | In the Detail View of the resource, defining the predicates and objects of the resource. |
You will now create resources for the various formats of the user manual of XMLSpy Professional Edition.
Creating and naming the RDF resource
To create a new RDF resource, do the following:
| 1. | In the Overview of RDF/OWL View, click the Add New button, and select Add Resource (screenshot below). |

An entry for the new resource is added to the list of resources.
| 2. | Name the resource doc:XMLSpyProfessionalUserManualENHTML and press Enter. The resource is placed in the list according to its alphabetical order. |
Defining the predicates and objects of the resource
The predicate and object of the newly created resource must be defined in the Detail View of the resource. Do this as follows:
| 1. | Click the Detail View button of doc:XMLSpyProfessionalUserManualENHTML to go to its Detail View. |
| 2. | In Detail View, right-click the resource box and select Add Predicate. |
| 3. | Click the down arrow of the predicate box to display a list of all available resources (screenshot below). Select dc:language. |

| 4. | Right-click the dc:language box, and select Add Resource Object. |
| 5. | From the dropdown list of the Resource Object box, select doc:EN. (If the down arrow is not displayed at the right hand-side of the Resource Object box, double-click inside the box to display it.) The representation of the RDF statement should look like this: |

You have now defined one property of your resource and its value.
| 6. | To define the dc:format property, right-click the resource box, click Add Predicate, and select dc:format as the name of the predicate. Add a resource object to this property, and select doc:HTML (from the dropdown list) to be the resource object. |
| 7. | Create a dc:date property for the resource. Add a literal object—not a resource object—to the dc:date property, enter 2006-10-03 and select xsd:date as the datatype of the literal object. |
| 8. | Add another predicate to the resource and select rdf:type as its name. Add a resource object to the predicate and enter doc:EnglishWebPage as its name (screenshot below). |
The Detail View of the XMLSpyProfessionalUserManualENHTML resource will finally look something like this:

To complete the RDF document, create the following resources:
| • | XMLSpyProfessionalUserManualDEHTML (language=DE, format=HTML, rdf:type=GermanWebPage). |
| • | XMLSpyProfessionalUserManualENPDF (language=EN, format=PDF, rdf:type=PrintManual). |
| • | XMLSpyProfessionalUserManualDEPDF (language=DE, format=PDF, rdf:type=PrintManual). |
Save the file and check the Text View of the document. Notice that only the newly created resources are defined in Text View. The list of resources in the Overview of RDF/OWL View, however, also includes the resources from the referenced ontology. This helps you to enter ontology resources quickly in RDF statements. Further, clicking the Detail View of an ontology resource causes the relationships of the resource to be displayed.
That's it!
You have learned how to quickly create RDF documents using the graphical interface of SemanticWorks.
|