From: Ralf H. <car...@ar...> - 2012-06-06 22:15:54
|
I've some (pretty much) documents that will (of corse) be in the file:-Namespace. Each file belongs to one or more buildings. The buildings each have an ID. So my idea was to put one ore more building ID into a property (called buildingID) of each document. Now i tried with "using" the same property several times and that seems to work. When I ask i get a fine list of buildingIDs. Until I start with an semantic template and form. I can't see a control that allows me to enter multiple values to the same property. Any ideas are welcome. Ralf |
From: Stephan G. <s7...@gm...> - 2012-06-07 07:12:45
|
Hi Ralf, you could use one input to insert all the values and then use the arraymap function in your template to split it. See http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Semantic_Forms_and_templates#Multiple_values_for_the_same_field. Alternatively you could set up a multiple instance template form. See http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Multiple-instance_templates Cheers, Stephan On 7 June 2012 00:15, Ralf Hagenbuck <car...@ar...> wrote: > I've some (pretty much) documents that will (of corse) be in > the file:-Namespace. Each file belongs to one or more buildings. The > buildings each have an ID. So my idea was to put one ore more building > ID into a property (called buildingID) of each document. Now i tried > with "using" the same property several times and that seems to work. > When I ask i get a fine list of buildingIDs. Until I start with an > semantic template and form. I can't see a control that allows me to > enter multiple values to the same property. Any ideas are welcome. > > Ralf > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: Ralf H. <car...@ar...> - 2012-06-07 09:48:43
|
Ah, that looks to be exactly what I need. Why didn't I find it yet. Where do I have to insert this #arraymap:? In the form or the template? How will the Data be stored on the page? Multiple devided values in a single propertyas a string? Will a query for a single value result even if there are multiple values in that property? Am Donnerstag, den 07.06.2012, 09:12 +0200 schrieb Stephan Gambke: > Hi Ralf, > > you could use one input to insert all the values and then use the > arraymap function in your template to split it. > See http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Semantic_Forms_and_templates#Multiple_values_for_the_same_field. > > Alternatively you could set up a multiple instance template form. > See http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Multiple-instance_templates > > Cheers, > Stephan > > > On 7 June 2012 00:15, Ralf Hagenbuck <car...@ar...> wrote: > > I've some (pretty much) documents that will (of corse) be in > > the file:-Namespace. Each file belongs to one or more buildings. The > > buildings each have an ID. So my idea was to put one ore more building > > ID into a property (called buildingID) of each document. Now i tried > > with "using" the same property several times and that seems to work. > > When I ask i get a fine list of buildingIDs. Until I start with an > > semantic template and form. I can't see a control that allows me to > > enter multiple values to the same property. Any ideas are welcome. > > > > Ralf > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Semediawiki-user mailing list > > Sem...@li... > > https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
From: Stephan G. <s7...@gm...> - 2012-06-07 10:08:06
|
You use the arraymap function in the template. If you set it up right, every value in the list will be stored in its own property. That way they will also be queryable as separately. The call should look something like this: {{#arraymap:{{{TemplateParamName}}}|,|XXX|[[buildingID::XXX]]| }} This will generate a list of property-value-pairs from a comma-separated list in the template parameter. On 7 June 2012 11:48, Ralf Hagenbuck <car...@ar...> wrote: > Ah, that looks to be exactly what I need. Why didn't I find it yet. > Where do I have to insert this #arraymap:? In the form or the template? > > How will the Data be stored on the page? Multiple devided values in a > single propertyas a string? > > Will a query for a single value result even if there are multiple values > in that property? > > > Am Donnerstag, den 07.06.2012, 09:12 +0200 schrieb Stephan Gambke: >> Hi Ralf, >> >> you could use one input to insert all the values and then use the >> arraymap function in your template to split it. >> See http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Semantic_Forms_and_templates#Multiple_values_for_the_same_field. >> >> Alternatively you could set up a multiple instance template form. >> See http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Multiple-instance_templates >> >> Cheers, >> Stephan >> >> >> On 7 June 2012 00:15, Ralf Hagenbuck <car...@ar...> wrote: >> > I've some (pretty much) documents that will (of corse) be in >> > the file:-Namespace. Each file belongs to one or more buildings. The >> > buildings each have an ID. So my idea was to put one ore more building >> > ID into a property (called buildingID) of each document. Now i tried >> > with "using" the same property several times and that seems to work. >> > When I ask i get a fine list of buildingIDs. Until I start with an >> > semantic template and form. I can't see a control that allows me to >> > enter multiple values to the same property. Any ideas are welcome. >> > >> > Ralf >> > >> > >> > ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's security and >> > threat landscape has changed and how IT managers can respond. Discussions >> > will include endpoint security, mobile security and the latest in malware >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > Semediawiki-user mailing list >> > Sem...@li... >> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > |
From: Ralf H. <r_h...@ar...> - 2012-06-10 07:28:54
|
Thanks for Help. It works. Am Thu, 7 Jun 2012 12:07:39 +0200 schrieb Stephan Gambke <s7...@gm...>: > You use the arraymap function in the template. > > If you set it up right, every value in the list will be stored in its > own property. That way they will also be queryable as separately. > > The call should look something like this: > > {{#arraymap:{{{TemplateParamName}}}|,|XXX|[[buildingID::XXX]]| }} > > This will generate a list of property-value-pairs from a > comma-separated list in the template parameter. > > > On 7 June 2012 11:48, Ralf Hagenbuck <car...@ar...> wrote: > > Ah, that looks to be exactly what I need. Why didn't I find it yet. > > Where do I have to insert this #arraymap:? In the form or the > > template? > > > > How will the Data be stored on the page? Multiple devided values in > > a single propertyas a string? > > > > Will a query for a single value result even if there are multiple > > values in that property? > > > > > > Am Donnerstag, den 07.06.2012, 09:12 +0200 schrieb Stephan Gambke: > >> Hi Ralf, > >> > >> you could use one input to insert all the values and then use the > >> arraymap function in your template to split it. > >> See > >> http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Semantic_Forms_and_templates#Multiple_values_for_the_same_field. > >> > >> Alternatively you could set up a multiple instance template form. > >> See > >> http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Multiple-instance_templates > >> > >> Cheers, > >> Stephan > >> > >> > >> On 7 June 2012 00:15, Ralf Hagenbuck <car...@ar...> wrote: > >> > I've some (pretty much) documents that will (of corse) be in > >> > the file:-Namespace. Each file belongs to one or more buildings. > >> > The buildings each have an ID. So my idea was to put one ore > >> > more building ID into a property (called buildingID) of each > >> > document. Now i tried with "using" the same property several > >> > times and that seems to work. When I ask i get a fine list of > >> > buildingIDs. Until I start with an semantic template and form. I > >> > can't see a control that allows me to enter multiple values to > >> > the same property. Any ideas are welcome. > >> > > >> > Ralf > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > Live Security Virtual Conference > >> > Exclusive live event will cover all the ways today's security and > >> > threat landscape has changed and how IT managers can respond. > >> > Discussions will include endpoint security, mobile security and > >> > the latest in malware threats. > >> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > >> > _______________________________________________ Semediawiki-user > >> > mailing list Sem...@li... > >> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > > |