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



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

Hi everyone,

I have saved an internal object which has several properties:






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:


|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.



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!



Semediawiki-devel mailing list