www.altova.com
Previous  Top  Next

Creating the DC Metadata


In this section, you will create Dublin Core (DC) metadata for a single resource. Specifically, you will create a resource called A Sample Page, and define dc:title, dc:description, and dc:date elements for it.

 

 

Creating a new resource

To create a new resource, create the Add New button (screenshot below), and name the newly created resource urn:SamplePage.

 

ss_tut_rdf_dc_addnew_resource

 

 

Adding DC metadata for a resource

Click the Detail View button of urn:SamplePage to go to the Detail View of urn:SamplePage (screenshot below).

 

ss_tut_rdf_dc_samplepage

 

Now do the following:

 

1.Right-click the urn:SamplePage box, click Add Predicate, and from the dropdown list select dc:title. Right-click the dc:title box, click Add Literal Object, and type A Sample Page in the newly created Literal Object box. The dc:title metadata is created.
2.Right-click the urn:SamplePage box, click Add Predicate, and from the dropdown list select dc:description. Right-click the dc:description box, click Add Literal Object, and type A Sample Page for the DC metadata tutorial in the newly created Literal Object box. The dc:description metadata is created.
3.Right-click the urn:SamplePage box, click Add Predicate, and from the dropdown list select dc:date. Right-click the dc:date box, click Add Literal Object, and type 2006-10-03 in the newly created Literal Object box. Select the datatype toggle (by clicking DT in the bottom half of the ic_datatype icon). Then click the down arrow of the combo box to display a dropdown list of available XML Schema datatypes, and select xsd:date. The dc:date metadata is created and has the XML Schema datatype xsd:date.

 

The Detail View of urn:SamplePage should look something like this:

 

ss_tut_rdf_dc_samplepage_done

 

Switch to Text View to see the RDF/XML serialization, which should look something like this:

 

ss_tut_rdf_dc_samplepage_textview

 

Notice that the dc:date element has an rdf:datatype attribute with a value of http://www.w3.org/2001/XMLSchema#date, which indicates the date datatype of XML Schema.

 

You can create as many DC elements that you want as predicates of this resource. To create more resources, go back to RDF/OWL View Overview. Save the file to complete this part of the tutorial.

 

 

That's it!

You have learned how to create a Dublin Core RDF document using the graphical interface of SemanticWorks. In the Examples folder of the SemanticWorks application folder, you will find a DC ontology (DCOntology.rdf) and a DC template (DCTemplate.rdf) to help you create DC RDF documents.

 


Previous  Top  Next

© 2008 Altova