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 +0000, 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

Reply via email to