W3C home > Mailing lists > Public > public-owl-comments@w3.org > October 2009

Colons in Prefix Names?

From: Marko Luther <luther@docomolab-euro.com>
Date: Sat, 17 Oct 2009 19:02:57 +0200
Message-Id: <298CA2EF-7DDA-47C7-BE4C-880738E9A91D@docomolab-euro.com>
To: public-owl-comments@w3.org
I got confused by the examples given in the PR OWL 2 Primer at

<http://www.w3.org/TR/2009/PR-owl2-primer-20090922/>

regarding the exact syntax for prefix names.

According to the PR OWL 2 Structural Specification at

<http://www.w3.org/TR/2009/PR-owl2-syntax-20090922/#IRIs>

the last character should always be a colon (see also the PNAME_NS  
production in <http://www.w3.org/TR/2008/REC-rdf-sparql-query-20080115/ 
 >). This is also the case for all examples given in Functional Style  
Syntax, e.g. those in
<http://www.w3.org/TR/2009/PR-owl2-primer-20090922/#Appendix:_The_Complete_Sample_Ontology 
 >

Prefix(:=<http://example.com/owl/families/>)
Prefix(otherOnt:=<http://example.org/otherOntologies/families/>)
Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>)
Prefix(owl:=<http://www.w3.org/2002/07/owl#>)
..

However, the corresponding example in OWL/XML Syntax has the following  
entry

   <Prefix name="otherOnt" IRI="http://example.org/otherOntologies/families/ 
"/>

which complies with the OWL 2 XML Schema. Note that here the name of  
the prefix does not contain a colon. I would have expected the  
following:

   <Prefix name="otherOnt:" IRI="http://example.org/otherOntologies/families/ 
"/>

What is the correct way to specify a prefix in OWL/XML Syntax? Would  
the empty prefix be defined with name="" or name=":"?

Best regards,
Marko Luther

Received on Saturday, 17 October 2009 17:03:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 17 October 2009 17:03:41 GMT