Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] question about select namespace and subject element

Subject: perfsonar development work

List archive

Re: [pS-dev] question about select namespace and subject element


Chronological Thread 
  • From: Jason Zurawski <>
  • To: ulisses <>
  • Cc:
  • Subject: Re: [pS-dev] question about select namespace and subject element
  • Date: Wed, 06 Sep 2006 09:41:25 -0400

Ulisses;

[...]

please take a note at the text enclosed between <here> and </here>

A full example could be:

<nmwg:metadata id="meta1">
<netutil:subject id="sub1">

<here>

<nmwgtopo3:link>
<nmwgtopo3:interface>
<nmwgtopo3:capacity>155000000</nmwgtopo3:capacity>
</nmwgtopo3:interface>
</nmwgtopo3:link>

</here>

</netutil:subject>
</nmwg:metadata>
The namespace of subject is wrong here (it should be just nmwg, or something else generic), but the idea is correct.

ok

<nmwg:metadata id="meta2">
<select:subject id="sub2" metadataIdRef="meta1"/>

<select:parameters id="param1">
<nmwg:parameter name="Time">0</nmwg:parameter>
</select:parameters>

<nmwg:eventType>select</nmwg:eventType>

</nmwg:metadata>


I am not sure what you mean by:

<nmwg:parameter name="Time">0</nmwg:parameter>

in this example. You are trying to get all link elements, with that capacity, that start after time 0?

it is my way of specifying "now", I could be a the "now" string if you prefer.


In the past some developers have used:

<nmwg:parameter name="time">now</nmwg:parameter>

It doesn't really matter to me or the schema defn as these are simply parameters that will be defined on a per-service level. We should try to keep the notion the same across the services however.

Your example is more or less correct, and we did intend for the parameters to be used in this fashion when interacting with databases and other backend storage. It will be necessary (as you are designing your service) to define what possible 'fields' can be selected upon

because the fields are for not very fixed (many are missing) and the storage schema is going to change. The way I have thought to solve it is to
allow between the <here>/</here> marks any partial definition of the child of root of the document of a full database download: that will allow to select
all elements that can match the elements partially defined.



Yes, I don't see a problem with this. I was referring more to defining the parameter portion (how many possible things can appear in the select parameters) more than what the initial subject can be:

<nmwg:metadata id="meta2">
<select:subject id="sub2" metadataIdRef="meta1"/>
<select:parameters id="param1">
<nmwg:parameter name="Time">0</nmwg:parameter>

<!-- List of other things that can be selected on besides time -->

</select:parameters>
<nmwg:eventType>select</nmwg:eventType>
</nmwg:metadata>




A conceptual example follows. Currently a full database download is more or
less:

root --- Nodes: Node 1, Node 2, etc...
--- Links: Link 1, Link 2, etc...

of course Nodes and Links have childs.

in the case of requesting a Node, the parameter would be a partial node
definition. That
would mean "select all nodes that match this partial definition of a node".



I am not sure I understand what you mean here, do you mean to include node/link information as parameters in the select? Could you please make a more descriptive example of what you intend to do?

-jason



Archive powered by MHonArc 2.6.16.

Top of Page