Feature #2212

Specify how to resolve datatypes

Added by Hannes Niederhausen about 9 years ago. Updated about 9 years ago.

Status:Closed Start date:2010-02-26
Priority:Normal Due date:
Assignee:Lars Marius Garshol % Done:

0%

Category:-
Target version:-

Description

The question is what should we do with used prefixes. For instance:

age isa occurrence-type;
has-datatype("xsd:int").

Any occurrence of this type in a topic map using int would have the datatype:
http://www.w3.org/2001/XMLSchema#int but the occurrence of the constraint says the datatype needs
to be "xsd:int".

Should a validaor resolve a set of prefixes or is it neccessary to set the reolved url in the constraint?

History

Updated by Lars Marius Garshol about 9 years ago

  • Assignee set to Lars Marius Garshol

Hannes Niederhausen schrieb:

Should a validaor resolve a set of prefixes or is it neccessary to set the reolved url in the constraint?

You must set the resolved URL in the constraint. The TMCL meta-schema says:

tmcl:datatype isa tmcl:occurrence-type;
- "Datatype";
has-datatype(xsd:anyURI).

So a tmcl:datatype constraint with a string value is invalid, and should cause the TMCL schema to be rejected.

Does this clarify the issue? If so, please close the issue.

Updated by Hannes Niederhausen about 9 years ago

  • Status changed from New to Closed

Does this clarify the issue? If so, please close the issue.

Yes it does. Thank you.

Also available in: Atom PDF