Re: JTM 1.1 - topic identifiers and references

Lars Heuer <[email protected]> Tue, 26 Apr 2011 20:29:40 +0200
Newsgroups gmane.text.xml.xtm.general
Organization Semagia
Message-ID <[email protected]>
Hi Lukas,

> I am implementing JTM 1.1. But currently I am confused about the notation of
> the topic identifiers and references, e.g.

> .        "subject_identifiers":["[tns:movies/dear-wendy]"], or

> .        "scope":["si:[country:US]", "si:[country:DE]"]


These are (safe) CURIEs [1] and they were introduced in JTM 1.1. You
don't have to use them (as serializer), though. You can also write:

      "subject_identifiers":["http://psi.example.org/bla"]

or
      "scope": ["si:http://psi.example.org/country/US"]


Each valid JTM 1.0 instance is a valid JTM 1.1 instance. If you want
to start simple, you can implement JTM 1.0 and ignore CURIEs and the
new JTM 1.1 stuff.


[...]
> All examples at http://www.cerny-online.com/jtm/1.1/ use prefixes in their
> notations, is it also possible to use entire URIs without a prefix - and
> what's with the "inner" square brackets?

That's the notation for safe CURIEs [2].


> I've changed both examples into:

> .       
> "subject_identifiers":["http://psi.topincs.com/movies/dear-wendy"],
> or

> .        "scope":["si:
> http://www.topicmaps.org/xtm/1.0/country.xtm#country:US", "si:
> http://www.topicmaps.org/xtm/1.0/country.xtm#country:DE"]

That's perfectly okay (in JTM 1.0 and JTM 1.1).

I don't know if you're writing a JTM deserializer or serializer but in
any case you may be interested in the JTM test suite at [3] (JTM 1.0)
and [4] (JTM 1.1). See [5] for more information.

[1] <http://www.w3.org/TR/curie/>
[2] <http://www.w3.org/TR/curie/#s_syntax>
[3]
<http://cxtm-tests.svn.sourceforge.net/viewvc/cxtm-tests/trunk/jtm/>
[4]
<http://cxtm-tests.svn.sourceforge.net/viewvc/cxtm-tests/trunk/jtm11/>
[5] <http://cxtm-tests.sourceforge.net/>

Best regards,
Lars
-- 
Semagia 
<http://www.semagia.com>

<https://twitter.com/larsheuer/> Twitter
<http://www.topicmaps.de/mailinglist/> German Topic Maps mailing list
<http://tinytim.sourceforge.net/> Open Source Topic Maps engine
<http://mappa.semagia.com/> Mappa - Python Topic Maps engine