Re: [SMW-devel] [SIO] Querying internal object properties

2013-04-22 Thread Andru Vallance

Hello Marcelo,
If I understand your requirement correctly, you can use a single query 
and use the template result format to pass the result to a template 
which sets the values of the new subobject. See the docs on the 
Template result format here: 
http://semantic-mediawiki.org/wiki/Help:Template_format


Yours
Andru






On 2013-04-20 19:05:30 +, Marcelo Chiaradía said:


Hi everyone,

I have saved an internal object which has several properties:

{{#set_internal:isInternalObjectOf
|property1=value1
|property2=value2
|name=object_name
}}

I have a situation where eventually I need to define a new internal 
object using the properties of the object saved before as values.


The way I found to do this is through semantic queries:

{{#set_internal:isInternalObjectOf
|property1={{#ask: [[-property1::[[name::object_name]] ]]}}
|property2={{#ask: [[-property2::[[name::object_name]] ]]}}
}}

The sintax may be not quite correct, just to show the idea.

The problem with this approach is that for every property, I have to 
make a new query. Is there some way to do this with only one query?


Thanks in advance.

Marcelo.
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] updateData() vs doDataUpdate() in SMWStore subclasses?

2013-04-22 Thread Jeroen De Dauw
Hey,

Looks like updateData just contains store implementation independent code.
This suggests updateData should be final, and that doDataUpdate should be
abstract. In other words, you probably want to implement doDataUpdate in a
new class deriving directly from SMWStore. Or are you deriving from a
subclass, ie the SQL Store?

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] [deprecated] list of deprecations

2013-04-22 Thread Jeroen De Dauw
Hey,

AFAIK there is no such list manually maintained. Perhaps there is one auto
generated based on the two indicators listed below, though I'm not aware of
any such list.

* Methods calling wfDeprecated() are deprecated
* Methods with the @deprecated annotation in their docs are deprecated

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel