RE: Delivery Context Ontology and DCCI : Looking for examples

Yes, that's why a Delivery Context Ontology Primer document is coming

in the meantime, this presentation might be useful to you

http://www.w3.org/2007/uwa/wiki/Image:Delivery_Context_Ontology_Presentation.pdf


Best Regards

De: Franck Divet [mailto:franck.divet@gmail.com]
Enviado el: martes, 16 de junio de 2009 16:57
Para: JOSE MANUEL CANTERA FONSECA
CC: public-uwa@w3.org
Asunto: Re: Delivery Context Ontology and DCCI : Looking for examples

You said : "with properties and subproperties the path can be very tricky to be generated".
I tried to put together a method from the example you sent me.

Here is a translation of my method:
1.Navigate to a class definition
2.Choose a property in the "in domain-of" section.
3.Navigate to the property definition
4.Add the property to the path
5.Choose a class in the "range" section and restart to step 1

Now there is a specific case i found with your example. That is when a class has a "super-class-of" section. I don't include it in the path. Then i choose the class that interests me and i go back to step 1.

I agree that this can only be done by a human and there is probably a point i missed. , but... it might help some people in the "maze" of classes and properties.

Regards


2009/6/16 JOSE MANUEL CANTERA FONSECA <jmcf@tid.es<mailto:jmcf@tid.es>>

Yes,



And I think it can be useful, I will consider to rescue it for the next draft. The issue I found is that with properties and subproperties the path can be very tricky to be generated but i will figure out how to deal with such issue



By the way, Be careful with the childProperty function example as it should call the searchProperty method with 'true' to enable deep property search, that was a mistake in my previous e-mail :)



Best Regards



De: Franck Divet [mailto:franck.divet@gmail.com<mailto:franck.divet@gmail.com>]
Enviado el: martes, 16 de junio de 2009 15:23
Para: JOSE MANUEL CANTERA FONSECA
CC: public-uwa@w3.org<mailto:public-uwa@w3.org>
Asunto: Re: Delivery Context Ontology and DCCI : Looking for examples



It helps. Thank you.

It's true that in the previous specifications there was a "path to caracteristics" which no longer exists in the last call working draft (june 2009).



My very best.







2009/6/15 JOSE MANUEL CANTERA FONSECA <jmcf@tid.es<mailto:jmcf@tid.es>>

Hi,



Taking into account that, according to the DCO, the path to current location is



currentEnvironment/currentLocation/position/coordinates/latitude

                                                                                                  /longitude

                                                                                                 /altitude

It would be something like



var currentLocation = childProperty(dcci, 'currentLocation')



var latitude = childProperty(currentLocation, 'latitude').value;

var longitude = childProperty(currentLocation, 'longitude').value;



Being childProperty a function like:



// convenience function for accessing child properties

      function childProperty(property, name)

      {

         // 1st parameter is "*" for wild card that matches any namespace

         // 2nd argument is the property name we are searching for

         // 3rd parameter is null for default search filter function

         // 4th parameter is false to restrict search to immediate children

         var list = <code>property.searchProperty("*", name, null, false);</code>



         // return first node in property list

         if (list && list.length > 0)

            return list[0];



         return null;

      }



I hope this helps



Best Regards



De: public-uwa-request@w3.org<mailto:public-uwa-request@w3.org> [mailto:public-uwa-request@w3.org<mailto:public-uwa-request@w3.org>] En nombre de Franck Divet
Enviado el: viernes, 12 de junio de 2009 12:08
Para: public-uwa@w3.org<mailto:public-uwa@w3.org>
Asunto: Delivery Context Ontology and DCCI : Looking for examples



Hello,



The DCCI module is défined with a associated DOM tree that contains properties.

The DC Ontology describes all kinds of classes and properties. But I don't see how to use it, store information as a DOM tree to be used by the DCCI module.



I found this one : http://www.w3.org/2007/uwa/editors-drafts/DeliveryContextOntology/LastCallWD-April2009/deliveryContextExamples.owl


But could you provide an associated example that show how to retreive a specific property (for example GPS location) ?



Great day to you all



Franck

Received on Tuesday, 16 June 2009 15:09:11 UTC