You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devicemap.apache.org by "eberhard speer jr." <se...@ducis.net> on 2014/08/24 19:29:31 UTC
Data 2.0 - Vocabulary Properties : ddr_ and guid
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
since we're adding anyway ;-) here are some more 'new' properties I'd
like to propose :
ddr_ : properties pertaining to the DDR responsible for the 'response'
ddr_vocabulary : Vocabulary Name [example : DeviceMap]
ddr_api : version number of the API used to create the response
ddr_version : data resources version number
ddr_date : release data of the data referenced in version number
guid : a *unique* identifier
use-case : user queries DDR, gets a response, [user may save the
response], later user re-queries the DDR and gets a *different*
response. The guid tells the user both are responses to the same
request, when properties [or their number] change over time.
Comments ?
esjr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJT+iD7AAoJEOxywXcFLKYccmoH/iCGCVUnImwAwbReHKHo2TuB
JKrF+5IEW/vMRV2dxzj/qD54WfJRcK75WtR1yFwicDOzlPf1i4e34rqnF7kO+8P5
QNc7MxqnWZOvrQeoYltV0u0fjZ4qsv4pRAFU9DNrVwQRJq2v5TILAvk+LFilMyaY
TxeHh7b5VdZooyd8fnhKe24xR1FY/BVikrXZdpEUyyetq6Pm/RJNKuM8FYsx+F2w
8eCdfVgYobDlS0/KspBZlCDebPviW/InQyNeFme+2u5pnEFQmlKcc0Rr7UkVDJfD
FmhIiwinHFFgN1SVUK/Q7mooUeA26demAimzxiGQA7Pob4GAjK0QFHy2dS5ZIfo=
=ud/o
-----END PGP SIGNATURE-----
Re: Data 2.0 - Vocabulary Properties : ddr_ and guid
Posted by Reza <re...@yahoo.com.INVALID>.
So im going to jump in early in this thread and just give my comments:
ua-prof: definitely. The ua-prof for a device sometimes has upto a hundred properties for said device. I dont think we should consider putting all those detailed properties in our DDR, ex: audio hardware and specifications. So by supplying the ua-prof, that can complement our data and allow the user to then query that data source to get these detailed or extended properties. As for multiple ua-profs for 1 device, that seems odd, each device should have 1 ua-prof from the manufacture?
As for the ddr_ properties, those all look good for *client* response values.
If you look at my dClass plugin, i kind of started going down this path. I always return the dClass version (dClass 2.2.4) and I also have a comment field for each index and for the devicemap/ODDR index, it contains the version (OpenDDR 1.27).
http://www.rezsoft.org:9000/uadiag
Guid: well, we already have an "id" field which should be unique. The nice thing about it is that its human friendly. A 32bit (or 64, 128) GUID is not at all human friendly.
________________________________
From: eberhard speer jr. <se...@ducis.net>
To: "'devicemap-dev@incubator.apache.org'" <de...@incubator.apache.org>
Sent: Sunday, August 24, 2014 1:29 PM
Subject: Data 2.0 - Vocabulary Properties : ddr_ and guid
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
since we're adding anyway ;-) here are some more 'new' properties I'd
like to propose :
ddr_ : properties pertaining to the DDR responsible for the 'response'
ddr_vocabulary : Vocabulary Name [example : DeviceMap]
ddr_api : version number of the API used to create the response
ddr_version : data resources version number
ddr_date : release data of the data referenced in version number
guid : a *unique* identifier
use-case : user queries DDR, gets a response, [user may save the
response], later user re-queries the DDR and gets a *different*
response. The guid tells the user both are responses to the same
request, when properties [or their number] change over time.
Comments ?
esjr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJT+iD7AAoJEOxywXcFLKYccmoH/iCGCVUnImwAwbReHKHo2TuB
JKrF+5IEW/vMRV2dxzj/qD54WfJRcK75WtR1yFwicDOzlPf1i4e34rqnF7kO+8P5
QNc7MxqnWZOvrQeoYltV0u0fjZ4qsv4pRAFU9DNrVwQRJq2v5TILAvk+LFilMyaY
TxeHh7b5VdZooyd8fnhKe24xR1FY/BVikrXZdpEUyyetq6Pm/RJNKuM8FYsx+F2w
8eCdfVgYobDlS0/KspBZlCDebPviW/InQyNeFme+2u5pnEFQmlKcc0Rr7UkVDJfD
FmhIiwinHFFgN1SVUK/Q7mooUeA26demAimzxiGQA7Pob4GAjK0QFHy2dS5ZIfo=
=ud/o
-----END PGP SIGNATURE-----
Re: Data 2.0 - Vocabulary Properties : ddr_ and guid
Posted by Werner Keil <we...@gmail.com>.
You referred to the getAPIVersion() and getDataVersion() of the W3C
standard, which have no relevance to a "response", they just belong to the
Service.
Again, except for PMC or other observers including Bertrand who may enjoy
the threads here, it seems better you or others prepare something in a Wiki
and we can look at one piece of proposed sample code and data structure
instead of discussing small bits outside their context[?]
Werner
On Mon, Aug 25, 2014 at 3:39 PM, eberhard speer jr. <se...@ducis.net>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Werner,
>
> > We already return all of those, but it's not read from the XML
> > files/data source, that is room for improvement, but IMHO there is
> > no need for a version number in every device entry. Neither does
> > the W3C spec intend that for those version numbers.
>
> which part of : "the response" is unclear ?
> I never suggested any such thing...
>
> esjr
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (MingW32)
>
> iQEcBAEBAgAGBQJT+zyBAAoJEOxywXcFLKYczZEIAIfv2L/XDe3pplJqoEc92JJP
> /mVUA7icV68VKzmqxXpaqUIsgcCaUyuKv0CFX5bTKK3kKAffEy0AQMcXEYSTILzl
> UIu/33UWnHlyxldOhIzqg/HCAeQ7iDfQ7YDs+bf70uXjGd6yhKobBxWdy0cDD0vM
> cJjSsiB/uJ67IvEg0im3W2+X+x30Tmaw0aW9ipu0Q+qDPfhHz8qkVfIfJtXml2ft
> efsZCCXfvxA+aiX3xHG4a4aABjdwSf2wN4gJibsGou8mis5S6Rralq6lSK1cgbMr
> 64UbEBU16YbAFWhsYkdLFSmFsW7tqR5zaDWWHzLr3t0ORtc9AU2AES6HLYp08uU=
> =WWW4
> -----END PGP SIGNATURE-----
>
Re: Data 2.0 - Vocabulary Properties : ddr_ and guid
Posted by "eberhard speer jr." <se...@ducis.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Werner,
> We already return all of those, but it's not read from the XML
> files/data source, that is room for improvement, but IMHO there is
> no need for a version number in every device entry. Neither does
> the W3C spec intend that for those version numbers.
which part of : "the response" is unclear ?
I never suggested any such thing...
esjr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJT+zyBAAoJEOxywXcFLKYczZEIAIfv2L/XDe3pplJqoEc92JJP
/mVUA7icV68VKzmqxXpaqUIsgcCaUyuKv0CFX5bTKK3kKAffEy0AQMcXEYSTILzl
UIu/33UWnHlyxldOhIzqg/HCAeQ7iDfQ7YDs+bf70uXjGd6yhKobBxWdy0cDD0vM
cJjSsiB/uJ67IvEg0im3W2+X+x30Tmaw0aW9ipu0Q+qDPfhHz8qkVfIfJtXml2ft
efsZCCXfvxA+aiX3xHG4a4aABjdwSf2wN4gJibsGou8mis5S6Rralq6lSK1cgbMr
64UbEBU16YbAFWhsYkdLFSmFsW7tqR5zaDWWHzLr3t0ORtc9AU2AES6HLYp08uU=
=WWW4
-----END PGP SIGNATURE-----
Re: Data 2.0 - Vocabulary Properties : ddr_ and guid
Posted by Werner Keil <we...@gmail.com>.
We already return all of those, but it's not read from the XML files/data
source, that is room for improvement, but IMHO there is no need for a
version number in every device entry. Neither does the W3C spec intend that
for those version numbers.
HTH,
Werner
On Mon, Aug 25, 2014 at 12:48 PM, eberhard speer jr. <se...@ducis.net>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> >> That's the version of the API and data, but not one for each
> >> line.
>
> totally lost me there...
>
> ejsr
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (MingW32)
>
> iQEcBAEBAgAGBQJT+xSNAAoJEOxywXcFLKYc3fAIAMhIdrsZvdeoQcJa00Eh9qBD
> dqICpaTgezaRcoHxlAxwU1MIeiTu+iiN3J4VQqVa4Q5gKfjlFdpMA26Lg6nqQ3Tu
> xkxYIfiSSAvSaIevS7rOhJ4mqLt3t/yOS6WUuNvSxhqCf9dHs/yRf1o8Q6nBYlUl
> PqoijkdqpcrWaWA3c81M6CpBU+yZZERVfBznpxSlD4O7LEie9oLy+Lflu67tRwyU
> OZW9dPUSPTq1muufjGibTVgdk0aiwS0bMNgPSp/sS10OGNUtrYlcZfbCt87Xie/1
> 7ZZ8Pvabq3VbFjx6PEbhYOrL95TA0FGJopoxfj4MNFaEp8Q0JzlBWkjaeUpDz14=
> =xqNO
> -----END PGP SIGNATURE-----
>
Re: Data 2.0 - Vocabulary Properties : ddr_ and guid
Posted by "eberhard speer jr." <se...@ducis.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
>> That's the version of the API and data, but not one for each
>> line.
totally lost me there...
ejsr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJT+xSNAAoJEOxywXcFLKYc3fAIAMhIdrsZvdeoQcJa00Eh9qBD
dqICpaTgezaRcoHxlAxwU1MIeiTu+iiN3J4VQqVa4Q5gKfjlFdpMA26Lg6nqQ3Tu
xkxYIfiSSAvSaIevS7rOhJ4mqLt3t/yOS6WUuNvSxhqCf9dHs/yRf1o8Q6nBYlUl
PqoijkdqpcrWaWA3c81M6CpBU+yZZERVfBznpxSlD4O7LEie9oLy+Lflu67tRwyU
OZW9dPUSPTq1muufjGibTVgdk0aiwS0bMNgPSp/sS10OGNUtrYlcZfbCt87Xie/1
7ZZ8Pvabq3VbFjx6PEbhYOrL95TA0FGJopoxfj4MNFaEp8Q0JzlBWkjaeUpDz14=
=xqNO
-----END PGP SIGNATURE-----
Re: Data 2.0 - Vocabulary Properties : ddr_ and guid
Posted by Werner Keil <we...@gmail.com>.
On Mon, Aug 25, 2014 at 12:53 AM, eberhard speer jr. <se...@ducis.net>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Werner,
>
> > please note I'm talking about the 'response' to a request [1] :
> > these are not properties as such in the DDR but properties to be
> > added to the response from a DDR, and thus should be defined.
> >
> >> So you mean the "client" not the data here...?
>
> I'm talking about the version information as per W3G specifications :
> http://www.w3.org/TR/DDR-Simple-API/#sec-Service-getDataVersion :
>
>
That's the version of the API and data, but not one for each line.
OpenDDR previously returned a pre-defined constant which may change (e.g.
"2012") but reading the XML file should not be a problem either.
However, there seems no sense, neither does the Service interface make any
intention that the data version changed on a line by line basis.
If e.g. The new Java API allows to access multiple data sources, then
getDataVersion() may return different values depending on what source you
call, but the API version only depends on the actual version of the library.
> "Returns information about the underlying data (values for Properties)
> if the implementation has a versioning system for that information. If
> it does have a versioning system for data then this value must change
> between calls if the implementation can not guarantee that the data is
> the same. If the implementation does not have a versioning system, the
> value __NOT_SUPPORTED"
>
> DeviceMap supports versioning, ergo...when you send out a json or
> whatever response, the versioning meta-data and DDR identifiers are
> added, as per specs and for simple sanity :-)
>
> >
> >
> >> I'm very aware of e.g. the UUID class in Java, but some of that
> >> seems to be mixing up the actual device repository with session
> >> information. Entries now have an id that shall be unique within
> >> an entity like "Device", e.g. id="SAMSUNG-SGH-i780" What value
> >> would a "guid" field add here? The semi-human readable ID seems
> >> OK, why do we need another one?
> >
> >> I think where entirely new structures are what you have in mind,
> >> it is better to draft actual pseudocode in the Wiki or a similar
> >> document, that is easier to see where each attribute is intended
> >> to be used than just by mail.
>
> This has nothing to do with session.
> The point is that, as you point out, the Device and its [current]
> property set, have a unique id. The current device Id, like the one
> you mention : "SAMSUNG-SGH-i780" in no way guarantees uniqueness [is
> this case-sensitive ? what about non-Latin characters ? what's 'valid'
> ? max length ?...].[1]
> Something like a guid, on the other hand, by its very nature,
> guarantees that.
> Keep the current Id as is, add a 'guid', when in doubt : follow the guide.
>
> Who generates guids how and where is not relevant, what is is that
> once released in the DeviceMap data, it may disappear [deleted] but it
> will *never* change.
>
> This way the TimeStamp and DDR response-properties meet the W3C specs
> and the guaranteed unique 'token' allows you to put 'same' responses
> in context for testing, quality control and data validation.
>
> Again, all this is mainly in the context of a DDR request/response,
> i.e. : meta-data the API adds to it's response : version of the data
> and a guaranteed unique identifier of the dataset [replication !!].
>
> esjr.
>
> [1] do a case-sensitive search vs a non-case sensitive one ;-)
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (MingW32)
>
> iQEcBAEBAgAGBQJT+mzSAAoJEOxywXcFLKYcIMwH/AjHB2qZG7LR+oL/Afq5TKmj
> OVks1nkcMZk9i3oUcKwv3dcd/wwMpwNqd9DcU6LEbxer46dAkBXkLcdecW0yOTH3
> u3BnyTj0YMK+luOMg7F/6tUmXvZ0Q8I5Sw+GkzsYt6b6jIqaUfiERO8fuxLotgyu
> 0JQNpmgNTXhJwa5Y+bEbRY4GAZ5fOKZRf9llDso3jacqeXsuCHLcV+wtM/LmZDCn
> p6E0bcQL35L7QqkgdzSppCSyEZ/MjO37LAmMDZwCYA+fdlX+i+eK/AXQ3D5xH6pO
> HKEAHVqAiFe5Xf0KVJfIUmuZyf74HMQ0QxLvWLzoHz72E3HI8sIqx7YEL/btGUo=
> =U4Zv
> -----END PGP SIGNATURE-----
>
Re: Data 2.0 - Vocabulary Properties : ddr_ and guid
Posted by "eberhard speer jr." <se...@ducis.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Werner,
> please note I'm talking about the 'response' to a request [1] :
> these are not properties as such in the DDR but properties to be
> added to the response from a DDR, and thus should be defined.
>
>> So you mean the "client" not the data here...?
I'm talking about the version information as per W3G specifications :
http://www.w3.org/TR/DDR-Simple-API/#sec-Service-getDataVersion :
"Returns information about the underlying data (values for Properties)
if the implementation has a versioning system for that information. If
it does have a versioning system for data then this value must change
between calls if the implementation can not guarantee that the data is
the same. If the implementation does not have a versioning system, the
value __NOT_SUPPORTED"
DeviceMap supports versioning, ergo...when you send out a json or
whatever response, the versioning meta-data and DDR identifiers are
added, as per specs and for simple sanity :-)
>
>
>> I'm very aware of e.g. the UUID class in Java, but some of that
>> seems to be mixing up the actual device repository with session
>> information. Entries now have an id that shall be unique within
>> an entity like "Device", e.g. id="SAMSUNG-SGH-i780" What value
>> would a "guid" field add here? The semi-human readable ID seems
>> OK, why do we need another one?
>
>> I think where entirely new structures are what you have in mind,
>> it is better to draft actual pseudocode in the Wiki or a similar
>> document, that is easier to see where each attribute is intended
>> to be used than just by mail.
This has nothing to do with session.
The point is that, as you point out, the Device and its [current]
property set, have a unique id. The current device Id, like the one
you mention : "SAMSUNG-SGH-i780" in no way guarantees uniqueness [is
this case-sensitive ? what about non-Latin characters ? what's 'valid'
? max length ?...].[1]
Something like a guid, on the other hand, by its very nature,
guarantees that.
Keep the current Id as is, add a 'guid', when in doubt : follow the guide.
Who generates guids how and where is not relevant, what is is that
once released in the DeviceMap data, it may disappear [deleted] but it
will *never* change.
This way the TimeStamp and DDR response-properties meet the W3C specs
and the guaranteed unique 'token' allows you to put 'same' responses
in context for testing, quality control and data validation.
Again, all this is mainly in the context of a DDR request/response,
i.e. : meta-data the API adds to it's response : version of the data
and a guaranteed unique identifier of the dataset [replication !!].
esjr.
[1] do a case-sensitive search vs a non-case sensitive one ;-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJT+mzSAAoJEOxywXcFLKYcIMwH/AjHB2qZG7LR+oL/Afq5TKmj
OVks1nkcMZk9i3oUcKwv3dcd/wwMpwNqd9DcU6LEbxer46dAkBXkLcdecW0yOTH3
u3BnyTj0YMK+luOMg7F/6tUmXvZ0Q8I5Sw+GkzsYt6b6jIqaUfiERO8fuxLotgyu
0JQNpmgNTXhJwa5Y+bEbRY4GAZ5fOKZRf9llDso3jacqeXsuCHLcV+wtM/LmZDCn
p6E0bcQL35L7QqkgdzSppCSyEZ/MjO37LAmMDZwCYA+fdlX+i+eK/AXQ3D5xH6pO
HKEAHVqAiFe5Xf0KVJfIUmuZyf74HMQ0QxLvWLzoHz72E3HI8sIqx7YEL/btGUo=
=U4Zv
-----END PGP SIGNATURE-----
Re: Data 2.0 - Vocabulary Properties : ddr_ and guid
Posted by Werner Keil <we...@gmail.com>.
On Sun, Aug 24, 2014 at 10:51 PM, eberhard speer jr. <se...@ducis.net>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Werner,
>
> please note I'm talking about the 'response' to a request [1] : these
> are not properties as such in the DDR but properties to be added to
> the response from a DDR, and thus should be defined.
>
>
So you mean the "client" not the data here...?
> So, yes, the data is included in the XML header, but should be
> transmitted in the response to a request [2].
>
> I also forgot to mention the most obvious :
>
> timestamp : ISO 8601 UTC time stamp when the response was generated.
>
> GUID : it is a common concept in the industry and the point is *not*
> for anyone to generate them -- allthough, I'll gladly explain how it's
> done in java ;-)
> The point is : replication instead of duplication.
> And yes, I do have them in 'my' existing data, I fail to see the
> point, unless of course it pertains to 'your' data...
> And if a guid is oh so upsetting, I'm open to any [industry
> 'standard', cross-platform] method you propose to ensure that a
> response has a constant 'globally' unique id that will not change
> while the rest of the data around it might, and will change.
>
>
I'm very aware of e.g. the UUID class in Java, but some of that seems to be
mixing up the actual device repository with session information.
Entries now have an id that shall be unique within an entity like "Device",
e.g. id="SAMSUNG-SGH-i780"
What value would a "guid" field add here? The semi-human readable ID seems
OK, why do we need another one?
I think where entirely new structures are what you have in mind, it is
better to draft actual pseudocode in the Wiki or a similar document, that
is easier to see where each attribute is intended to be used than just by
mail.
WDYT?
Werner
> esjr
>
>
> [1] http://www.w3.org/TR/DDR-Simple-API/#sec-Service-query-methods
> [2] http://www.w3.org/TR/DDR-Simple-API/#sec-Service-getDataVersion
> [3] http://www.w3.org/TR/NOTE-datetime
>
> On 24/08/2014 21:09, Werner Keil wrote:
> > On Sun, Aug 24, 2014 at 7:29 PM, eberhard speer jr.
> > <se...@ducis.net> wrote:
> >
> > Hi,
> >
> > since we're adding anyway ;-) here are some more 'new' properties
> > I'd like to propose :
> >
> > ddr_ : properties pertaining to the DDR responsible for the
> > 'response'
> >
> > ddr_vocabulary : Vocabulary Name [example : DeviceMap] ddr_api :
> > version number of the API used to create the response ddr_version :
> > data resources version number ddr_date : release data of the data
> > referenced in version number
> >
> >
> >
> >
> >> I suppose these are mostly for the header (where they are already
> >> more or less maintained right now) or would you put a version of
> >> the resource data with every single device entry? The
> >> "ddr_vocabulary" sort of exists, it was added by OpenDDR and I
> >> think it's called "from" or similar. That contains values like
> >> "ODDR" or (if we add new ones) "DeviceMap".
> >
> >> I don't think it is very heavily referred to, mostly meta-data,
> >> so if it makes sense for better understanding such a field could
> >> be named differently, e.g. ddr_vocabulary, too.
> >
> >
> >
> >
> > guid : a *unique* identifier use-case : user queries DDR, gets a
> > response, [user may save the response], later user re-queries the
> > DDR and gets a *different* response. The guid tells the user both
> > are responses to the same request, when properties [or their
> > number] change over time.
> >
> >
> >> Do you have all of these in your existing data, too? E.g. where
> >> would we generate such guid (which except a few cases is a rather
> >> MS/.NET feature btw;-)
> >
> >> Most others I don't see the "use-case" of these, they sound
> >> fairly dynamic, e.g. for a particular session. That is nothing a
> >> single device "class" would hold, would it?
> >
> >> Maybe you can explain these 3 a bit more.
> >
> >> Thanks Werner
> >
> >
> >
> > Comments ?
> >
> > esjr
> >>
> >
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (MingW32)
>
> iQEcBAEBAgAGBQJT+lBkAAoJEOxywXcFLKYcqEwIAIdF+j28oJY3higpyHcKbjgd
> NuKmlc+qUqlGfOEm6QCCAQjPWLvbhZBYUS5YA6/OQ/gd+qCbOxkCy2FPDlpYLTCA
> 993CjmTk71kUS2+4YjeZ98dMUr6NldIgBd+vi32sbaBJbRcmF7AoyslpAxq7j+nR
> 7XkJ2Pfkql4+Km17LGEs/VveCyOwIgGLrxf8lhCLsA80jcqArEbYdS2Mpo8+aILs
> McTesvgX0vFLYnGEiChoKNy66zWyr/OI7MtP0Y1AYpccDBsasNoC+ILpESDNGD5r
> T51SfBK46jzyQ8YUWlmqoZ4fhVFMpBSaCOZYpA6Bj0tU5NxJY6/rXDT2rL4Yk3s=
> =8viV
> -----END PGP SIGNATURE-----
>
Re: Data 2.0 - Vocabulary Properties : ddr_ and guid
Posted by "eberhard speer jr." <se...@ducis.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Werner,
please note I'm talking about the 'response' to a request [1] : these
are not properties as such in the DDR but properties to be added to
the response from a DDR, and thus should be defined.
So, yes, the data is included in the XML header, but should be
transmitted in the response to a request [2].
I also forgot to mention the most obvious :
timestamp : ISO 8601 UTC time stamp when the response was generated.
GUID : it is a common concept in the industry and the point is *not*
for anyone to generate them -- allthough, I'll gladly explain how it's
done in java ;-)
The point is : replication instead of duplication.
And yes, I do have them in 'my' existing data, I fail to see the
point, unless of course it pertains to 'your' data...
And if a guid is oh so upsetting, I'm open to any [industry
'standard', cross-platform] method you propose to ensure that a
response has a constant 'globally' unique id that will not change
while the rest of the data around it might, and will change.
esjr
[1] http://www.w3.org/TR/DDR-Simple-API/#sec-Service-query-methods
[2] http://www.w3.org/TR/DDR-Simple-API/#sec-Service-getDataVersion
[3] http://www.w3.org/TR/NOTE-datetime
On 24/08/2014 21:09, Werner Keil wrote:
> On Sun, Aug 24, 2014 at 7:29 PM, eberhard speer jr.
> <se...@ducis.net> wrote:
>
> Hi,
>
> since we're adding anyway ;-) here are some more 'new' properties
> I'd like to propose :
>
> ddr_ : properties pertaining to the DDR responsible for the
> 'response'
>
> ddr_vocabulary : Vocabulary Name [example : DeviceMap] ddr_api :
> version number of the API used to create the response ddr_version :
> data resources version number ddr_date : release data of the data
> referenced in version number
>
>
>
>
>> I suppose these are mostly for the header (where they are already
>> more or less maintained right now) or would you put a version of
>> the resource data with every single device entry? The
>> "ddr_vocabulary" sort of exists, it was added by OpenDDR and I
>> think it's called "from" or similar. That contains values like
>> "ODDR" or (if we add new ones) "DeviceMap".
>
>> I don't think it is very heavily referred to, mostly meta-data,
>> so if it makes sense for better understanding such a field could
>> be named differently, e.g. ddr_vocabulary, too.
>
>
>
>
> guid : a *unique* identifier use-case : user queries DDR, gets a
> response, [user may save the response], later user re-queries the
> DDR and gets a *different* response. The guid tells the user both
> are responses to the same request, when properties [or their
> number] change over time.
>
>
>> Do you have all of these in your existing data, too? E.g. where
>> would we generate such guid (which except a few cases is a rather
>> MS/.NET feature btw;-)
>
>> Most others I don't see the "use-case" of these, they sound
>> fairly dynamic, e.g. for a particular session. That is nothing a
>> single device "class" would hold, would it?
>
>> Maybe you can explain these 3 a bit more.
>
>> Thanks Werner
>
>
>
> Comments ?
>
> esjr
>>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJT+lBkAAoJEOxywXcFLKYcqEwIAIdF+j28oJY3higpyHcKbjgd
NuKmlc+qUqlGfOEm6QCCAQjPWLvbhZBYUS5YA6/OQ/gd+qCbOxkCy2FPDlpYLTCA
993CjmTk71kUS2+4YjeZ98dMUr6NldIgBd+vi32sbaBJbRcmF7AoyslpAxq7j+nR
7XkJ2Pfkql4+Km17LGEs/VveCyOwIgGLrxf8lhCLsA80jcqArEbYdS2Mpo8+aILs
McTesvgX0vFLYnGEiChoKNy66zWyr/OI7MtP0Y1AYpccDBsasNoC+ILpESDNGD5r
T51SfBK46jzyQ8YUWlmqoZ4fhVFMpBSaCOZYpA6Bj0tU5NxJY6/rXDT2rL4Yk3s=
=8viV
-----END PGP SIGNATURE-----
Re: Data 2.0 - Vocabulary Properties : ddr_ and guid
Posted by Werner Keil <we...@gmail.com>.
On Sun, Aug 24, 2014 at 7:29 PM, eberhard speer jr. <se...@ducis.net>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> since we're adding anyway ;-) here are some more 'new' properties I'd
> like to propose :
>
> ddr_ : properties pertaining to the DDR responsible for the 'response'
>
> ddr_vocabulary : Vocabulary Name [example : DeviceMap]
> ddr_api : version number of the API used to create the response
> ddr_version : data resources version number
> ddr_date : release data of the data referenced in version number
>
>
>
I suppose these are mostly for the header (where they are already more or
less maintained right now) or would you put a version of the resource data
with every single device entry?
The "ddr_vocabulary" sort of exists, it was added by OpenDDR and I think
it's called "from" or similar. That contains values like "ODDR" or (if we
add new ones) "DeviceMap".
I don't think it is very heavily referred to, mostly meta-data, so if it
makes sense for better understanding such a field could be named
differently, e.g. ddr_vocabulary, too.
> guid : a *unique* identifier
> use-case : user queries DDR, gets a response, [user may save the
> response], later user re-queries the DDR and gets a *different*
> response. The guid tells the user both are responses to the same
> request, when properties [or their number] change over time.
>
>
Do you have all of these in your existing data, too? E.g. where would we
generate such guid (which except a few cases is a rather MS/.NET feature
btw;-)
Most others I don't see the "use-case" of these, they sound fairly dynamic,
e.g. for a particular session. That is nothing a single device "class"
would hold, would it?
Maybe you can explain these 3 a bit more.
Thanks
Werner
> Comments ?
>
> esjr
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (MingW32)
>
> iQEcBAEBAgAGBQJT+iD7AAoJEOxywXcFLKYccmoH/iCGCVUnImwAwbReHKHo2TuB
> JKrF+5IEW/vMRV2dxzj/qD54WfJRcK75WtR1yFwicDOzlPf1i4e34rqnF7kO+8P5
> QNc7MxqnWZOvrQeoYltV0u0fjZ4qsv4pRAFU9DNrVwQRJq2v5TILAvk+LFilMyaY
> TxeHh7b5VdZooyd8fnhKe24xR1FY/BVikrXZdpEUyyetq6Pm/RJNKuM8FYsx+F2w
> 8eCdfVgYobDlS0/KspBZlCDebPviW/InQyNeFme+2u5pnEFQmlKcc0Rr7UkVDJfD
> FmhIiwinHFFgN1SVUK/Q7mooUeA26demAimzxiGQA7Pob4GAjK0QFHy2dS5ZIfo=
> =ud/o
> -----END PGP SIGNATURE-----
>