Re: [SMW-devel] Database question

2012-07-01 Thread Marcelo Chiaradía
Thanks a lot.

Marcelo.

2012/7/1 Yaron Koren 

> Hi,
>
> Try replacing {{{ClassificationList|No Instances}}} with 
> {{#if:{{{ClassificationList|}}}||No
> Instances}} .
>
> -Yaron
>
--
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-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Database question

2012-07-01 Thread Yaron Koren
Hi,

Try replacing {{{ClassificationList|No Instances}}} with
{{#if:{{{ClassificationList|}}}||No
Instances}} .

-Yaron
--
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-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Database question

2012-07-01 Thread Marcelo Chiaradía
Hi Yaron,

I could make it work. It was my semantic form distribution version.
Thanks a lot for the help.

I have one last thing to ask though.

I have a template A that includes several instances of another template B.
I have setted up my template A, so when It has no instances of B, it should
look the message "No Instances", and not an empty infobox. Something like
this:


Este es la plantilla 'Classifications'. Debe ser llamada en el siguiente
formato:

{{Classifications
|ClassificationList={{Classification|Purpose|TaxonPathList|Description|Keyword}}
}}

Editar la página para ver el texto de la plantilla.

{| style="width: 30em; font-size: 90%; border: 1px solid #aa;
background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left:
1em; padding: 0.2em; float: right; clear: right; text-align:left;"
! style="text-align: center; background-color:#ff;" colspan="2"
|LOM Classification
|-
|{{{ClassificationList|No Instances}}}
|}


And with Semantic Forms, Im using the "embed field" and the "holds
template"  parameters. My question is:

when I'm editing any page with my semantic form, and I remove all the
instances of B for my template A, it still creates a Template A in my page
like this:

{{Classifications
|ClassificationList=
}}

and not just {{Classifications}} as I was expected. I for this, It doesn't
show the default value "No instances".

Is there some way to fix this?

Thanks a lot for the help,
Marcelo.

2012/7/1 Yaron Koren 

> Hi Marcelo,
>
> That really looks like it should work... is this problem happening on a
> public wiki? If not, could you try to replicate it on a public wiki, like
> http://scratchpad.referata.com?
>
> Thanks,
> Yaron
>
>
> On Sat, Jun 30, 2012 at 9:52 AM, Marcelo Chiaradía <
> chiaradiamarc...@gmail.com> wrote:
>
>> Im sorry, i wrote my semantic form code wrong, it is like this:
>>
>> And the code of my semantic form is this:
>>
>> 
>> Este es el formulario '' MyForm ''.
>> Para crear una página con este formulario, ingrese el nombre de la página
>> a continuación; si la página con ese nombre ya existe, será dirigido al
>> formulario para editar esa página.
>>
>>
>> {{#forminput:form=MyForm}}
>>
>> 
>> 
>>
>> ==Relations==
>>
>> {{{for template|Relations}}}
>> {{{field|Relation|holds template}}}
>> {{{end template}}}
>>
>> {{{for template|Relation|multiple|embed in field=Relations[Relation]}}}
>>
>> {| class="formtable"
>> ! Kind:
>> | {{{field|Kind}}}
>> |-
>> ! Identifier:
>> | {{{field|Identifier}}}
>> |-
>> ! Description:
>> | {{{field|Description}}}
>> |}
>>
>> {{{end template}}}
>>
>> Hope someone can help me. I cant make it work.
>>
>> Regards,
>> Marcelo.
>>
>> 2012/6/30 Marcelo Chiaradía 
>>
>>> Hi Yaron,
>>>
>>> I've been looking at the page you pointed me.
>>>
>>> Im having some difficulties to do it. Maybe it is something worng in my
>>> code.
>>> I have a main template call "Relations", which must have inside of him
>>> several instances of another template called " Relation".
>>>
>>> The code of "Relation" is this:
>>>
>>> 
>>> Este es la plantilla 'Relation'. Debe ser llamada en el siguiente
>>> formato:
>>> 
>>> {{Relation
>>> |Kind=
>>> |Identifier=
>>> |Description=
>>> }}
>>> 
>>> Editar la página para ver el texto de la plantilla.
>>> 
>>>
>>> {| style="width: 30em; font-size: 90%; border: 1px solid #aa;
>>> background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left:
>>> 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
>>> ! style="text-align: center; background-color:#ff;" colspan="2"
>>> |Relation
>>> |-
>>> ! Kind
>>> |{{{Kind}}}
>>> |-
>>> ! Identifier
>>> |[[{{{Identifier}}}]]
>>> |-
>>> ! Description
>>> |{{{Description}}}
>>> |}
>>> {{#set_internal:hasCategory
>>> |Lom Relation kind={{{Kind|}}}
>>> |Lom Relation identifier={{{Identifier|}}}
>>> |Lom Relation description={{{Description|}}}
>>> }}
>>> 
>>>
>>> The code of "Relations" is this:
>>>
>>> 
>>> Este es la plantilla 'Relations'. Debe ser llamada en el siguiente
>>> formato:
>>> 
>>> {{Relations
>>> |Resource=={{Relation
>>> |Kind
>>> |Identifier
>>> |Description
>>> }}
>>> }}
>>> 
>>> Editar la página para ver el texto de la plantilla.
>>> 
>>> {| style="width: 30em; font-size: 90%; border: 1px solid #aa;
>>> background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left:
>>> 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
>>> ! style="text-align: center; background-color:#ff;" colspan="2"
>>> |Relations
>>> |-
>>> ! Relation
>>> | [[HasRelation::{{{Relation|}}}]]
>>> |}
>>> 
>>>
>>> And the code of my semantic form is this:
>>>
>>> 
>>> Este es el formulario '' MyForm ''.
>>> Para crear una página con este formulario, ingrese el nombre de la
>>> página a continuación; si la página con ese nombre ya existe, será dirigido
>>> al formulario para editar esa página.
>>>
>>>
>>> {{#forminput:form=MyForm}}
>>>
>>> 
>>> 
>>>
>>> ==Relations==
>>>
>>> {{{for template|Relaciones}}}
>>> {{{field|Resourc

Re: [SMW-devel] Database question

2012-07-01 Thread Yaron Koren
Hi Marcelo,

That really looks like it should work... is this problem happening on a
public wiki? If not, could you try to replicate it on a public wiki, like
http://scratchpad.referata.com?

Thanks,
Yaron

On Sat, Jun 30, 2012 at 9:52 AM, Marcelo Chiaradía <
chiaradiamarc...@gmail.com> wrote:

> Im sorry, i wrote my semantic form code wrong, it is like this:
>
> And the code of my semantic form is this:
>
> 
> Este es el formulario '' MyForm ''.
> Para crear una página con este formulario, ingrese el nombre de la página
> a continuación; si la página con ese nombre ya existe, será dirigido al
> formulario para editar esa página.
>
>
> {{#forminput:form=MyForm}}
>
> 
> 
>
> ==Relations==
>
> {{{for template|Relations}}}
> {{{field|Relation|holds template}}}
> {{{end template}}}
>
> {{{for template|Relation|multiple|embed in field=Relations[Relation]}}}
>
> {| class="formtable"
> ! Kind:
> | {{{field|Kind}}}
> |-
> ! Identifier:
> | {{{field|Identifier}}}
> |-
> ! Description:
> | {{{field|Description}}}
> |}
>
> {{{end template}}}
>
> Hope someone can help me. I cant make it work.
>
> Regards,
> Marcelo.
>
> 2012/6/30 Marcelo Chiaradía 
>
>> Hi Yaron,
>>
>> I've been looking at the page you pointed me.
>>
>> Im having some difficulties to do it. Maybe it is something worng in my
>> code.
>> I have a main template call "Relations", which must have inside of him
>> several instances of another template called " Relation".
>>
>> The code of "Relation" is this:
>>
>> 
>> Este es la plantilla 'Relation'. Debe ser llamada en el siguiente formato:
>> 
>> {{Relation
>> |Kind=
>> |Identifier=
>> |Description=
>> }}
>> 
>> Editar la página para ver el texto de la plantilla.
>> 
>>
>> {| style="width: 30em; font-size: 90%; border: 1px solid #aa;
>> background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left:
>> 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
>> ! style="text-align: center; background-color:#ff;" colspan="2"
>> |Relation
>> |-
>> ! Kind
>> |{{{Kind}}}
>> |-
>> ! Identifier
>> |[[{{{Identifier}}}]]
>> |-
>> ! Description
>> |{{{Description}}}
>> |}
>> {{#set_internal:hasCategory
>> |Lom Relation kind={{{Kind|}}}
>> |Lom Relation identifier={{{Identifier|}}}
>> |Lom Relation description={{{Description|}}}
>> }}
>> 
>>
>> The code of "Relations" is this:
>>
>> 
>> Este es la plantilla 'Relations'. Debe ser llamada en el siguiente
>> formato:
>> 
>> {{Relations
>> |Resource=={{Relation
>> |Kind
>> |Identifier
>> |Description
>> }}
>> }}
>> 
>> Editar la página para ver el texto de la plantilla.
>> 
>> {| style="width: 30em; font-size: 90%; border: 1px solid #aa;
>> background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left:
>> 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
>> ! style="text-align: center; background-color:#ff;" colspan="2"
>> |Relations
>> |-
>> ! Relation
>> | [[HasRelation::{{{Relation|}}}]]
>> |}
>> 
>>
>> And the code of my semantic form is this:
>>
>> 
>> Este es el formulario '' MyForm ''.
>> Para crear una página con este formulario, ingrese el nombre de la página
>> a continuación; si la página con ese nombre ya existe, será dirigido al
>> formulario para editar esa página.
>>
>>
>> {{#forminput:form=MyForm}}
>>
>> 
>> 
>>
>> ==Relations==
>>
>> {{{for template|Relaciones}}}
>> {{{field|Resource|holds template}}}
>> {{{end template}}}
>>
>> {{{for template|Relation|multiple|embed in field=Relaciones[Resource]}}}
>>
>> {| class="formtable"
>> ! Kind:
>> | {{{field|Kind}}}
>> |-
>> ! Identifier:
>> | {{{field|Identifier}}}
>> |-
>> ! Description:
>> | {{{field|Description}}}
>> |}
>>
>> {{{end template}}}
>>
>> '''Texto libre:'''
>>
>> {{{standard input|free text|rows=10}}}
>> {{{standard input|summary}}}
>> {{{standard input|minor edit}}} {{{standard input|watch}}}
>> {{{standard input|save}}} {{{standard input|preview}}} {{{standard
>> input|changes}}} {{{standard input|cancel}}}
>> 
>>
>> Can you give me hand and tell me what am i doing wrong?
>>
>> Thanks in advance,
>>
>> Marcelo.
>>
>> 2012/6/29 Yaron Koren 
>>
>>> Hi,
>>>
>>> Yes, you can do that via the "embed in field" and "holds template"
>>> parameters - see here:
>>>
>>>
>>> http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Form_markup_language
>>>
>>>
>>> -Yaron
>>>
>>>
>>> On Fri, Jun 29, 2012 at 3:55 PM, Marcelo Chiaradía <
>>> chiaradiamarc...@gmail.com> wrote:
>>>
 Hi Yaron,

 Ok, I'll give it a try, thanks a lot.

 One other question, does the semantic forms extension support nested
 templates?

 For example, I have a template A, which must have several instances of
 a template B. I would like to complete the data for A, and create several
 instances of B within A, using only one semantic form.

 Is that possible? If so, can you point me to an example of how to do it?

 Thanks in advance,

 Marcelo.


 2012/6/29 Yaron Koren 

> H

[SMW-devel] Wiki of the Month - July 2012: Graz Wiki

2012-07-01 Thread Desiree Gennaro
Hello Everyone,

I am pleased to announce that the Semantic MediaWiki of the month for July 2012 
is Graz Wiki.

http://semantic-mediawiki.org/wiki/Graz_Wiki

Graz Wiki is a project of the initiative "SOKO Old Town" and attempts to 
document the architectural heritage of the city of Graz. This wiki is dedicated 
to the unique and historic architecture of Graz, the second largest city in 
Austria.

Congratulations to the Graz Wiki team for all of your hard work and thank you 
for sharing your wiki with us.

As always, please do not forget to nominate your wiki. Just follow the 
instructions here: 
http://semantic-mediawiki.org/wiki/Wiki_of_the_Month#Nominate_a_wiki.

Thanks,
-Desi
--
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-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel