Re: TLCOrganization in metadata

4 views
Skip to first unread message

Ashok Hariharan

unread,
Nov 14, 2012, 8:48:48 AM11/14/12
to Samar Ayesh, Ahmad Hammo, bungeni...@googlegroups.com


On 14 November 2012 15:33, Samar Ayesh <smr....@gmail.com> wrote:
Hello Ashok,
I'm working on getting metadata section as required for our metadata fields and for being valid with AkomaNtoso.

I edited attached files: (under >> birzeit_configs/system/generators/
- type_meta_ident_publi_generator.xsl
- type_static_templates.xsl

SO that they display TLCOrganization record in metadata .. but I need more than one record(one for pna, another for IoL) ... how can I achieve that?

I think your requirement can be worked in by setting the organization metadata on the root section :

<sectionType name="root"
              prefix="act"
              numstyle="single"
              visibility="user" >
        <output>
            <meta>
             <TLCOrganization id="$BungeniOrganization1" ... />
             <TLCOrganization id="$BungeniOrganization2" ... />

            </meta>
            <content>
                <akomaNtoso>
                    <act>
                        <meta mode="call"/>
                        <preface mode="call" />
                        <preamble mode="call" />
                        <body  mode="call"/>
                        <conclusions mode="call" />
                    </act>
                </akomaNtoso>
            </content>
        </output>
    </sectionType>

that implies having a point where you apply that metadata on the root section ...either why the initial metadata setter dialog ..or via an explicit action ... this way it will be more flexible than having to mess with XSLTs ...since the XSLts are rendered from this config ... Let me do a small test on these lines and get back to you


Also, I created frbrauthor_generator to have 2 attributes (href and as) which values may differ between work, expression, manifistaion

attached is a screen shot for what I have till now in my AN generated xml




--
 ___________________________
 Samar Ayesh


Ashok Hariharan

unread,
Dec 7, 2012, 2:30:48 AM12/7/12
to Samar Ayesh, Ahmad Hammo, bungeni...@googlegroups.com
On 14 November 2012 16:48, Ashok Hariharan <as...@parliaments.info> wrote:


On 14 November 2012 15:33, Samar Ayesh <smr....@gmail.com> wrote:
Hello Ashok,
I'm working on getting metadata section as required for our metadata fields and for being valid with AkomaNtoso.

I edited attached files: (under >> birzeit_configs/system/generators/
- type_meta_ident_publi_generator.xsl
- type_static_templates.xsl

SO that they display TLCOrganization record in metadata .. but I need more than one record(one for pna, another for IoL) ... how can I achieve that?

I am looking at this now .. this is missing functionality actually .. let me add an example of how to do this in the dev configuration. I want to avoid direct customizations to the type_XXX .xsl stylesheets since they are system internal ...

 

Samar Ayesh

unread,
Dec 12, 2012, 4:01:54 AM12/12/12
to bungeni...@googlegroups.com, Samar Ayesh, Ahmad Hammo
Just added the following lines to get TLCOrganization and TLCRole in meta section .. but it didn't work !!

<sectionType name="root"

              prefix="act"
              numstyle="single"
              visibility="user" >
        <output>
            <meta>
             <TLCOrganization id="$BungeniWorkAuthor" href="/ontology/organization/ps/palestinianNationalAuthority" showAs="Palestinian National Authority" />
             <TLCOrganization id="$BungeniManAuthor" href="/ontology/organization/ps/IoL" showAs="Institute of Law"/>
             <TLCRole id="$BungeniManAuthorAs" href="/ontology/role/editor" showAs="Editor"/>
             <TLCRole id="$BungeniExpAuthorAs" href="/ontology/role/publisher" showAs="Publisher"/>
             <TLCRole id="$BungeniWorkAuthorAs" href="/ontology/role/author" showAs="Author"/>
            </meta>
           
            <content>
                  .
                  .
                  .
                  .   

Is there a new config for this issue?
I think that the process of adding them to meta tag is the same as adding proprietary into metadata...

Ashok Hariharan

unread,
Dec 13, 2012, 2:14:31 AM12/13/12
to bungeni...@googlegroups.com, Samar Ayesh, Ahmad Hammo
On 12 December 2012 12:01, Samar Ayesh <smr....@gmail.com> wrote:
Just added the following lines to get TLCOrganization and TLCRole in meta section .. but it didn't work !!

<sectionType name="root"

              prefix="act"
              numstyle="single"
              visibility="user" >
        <output>
            <meta>
             <TLCOrganization id="$BungeniWorkAuthor" href="/ontology/organization/ps/palestinianNationalAuthority" showAs="Palestinian National Authority" />
             <TLCOrganization id="$BungeniManAuthor" href="/ontology/organization/ps/IoL" showAs="Institute of Law"/>
             <TLCRole id="$BungeniManAuthorAs" href="/ontology/role/editor" showAs="Editor"/>
             <TLCRole id="$BungeniExpAuthorAs" href="/ontology/role/publisher" showAs="Publisher"/>
             <TLCRole id="$BungeniWorkAuthorAs" href="/ontology/role/author" showAs="Author"/>
            </meta>
           
            <content>
                  .
                  .
                  .
                  .   


It wont work because that metadata is not set on the root section . So to get it to work the metadata has to be set on the section - which is I wanted to add an example of ... havent gotten around to it yet ...

Ashok
 
--
You received this message because you are subscribed to the Google Groups "bungeni-editor" group.
To view this discussion on the web visit https://groups.google.com/d/msg/bungeni-editor/-/19gOuVvuWYoJ.
To post to this group, send email to bungeni...@googlegroups.com.
To unsubscribe from this group, send email to bungeni-edito...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bungeni-editor?hl=en.

Ashok Hariharan

unread,
Dec 13, 2012, 2:24:17 AM12/13/12
to Samar A. Ayesh, bungeni...@googlegroups.com
I meant something like :

<sectionType name="root"
prefix="debaterecord"
numstyle="single"
visibility="user" >
<metadatas>
<metadata name="BungeniManAuthor" />
<metadata name="BungeniManAuthorURI" />

</metadatas>
<output>
<meta>
<references>
<TLCPerson href="$BungeniManAuthorURI"
showAs="$BungeniManAuthorURI" />
</references>
</meta>
<content>
<an:akomaNtoso>
<an:debate>
<an:meta mode="call"/>
<an:preface mode="call" />
<an:debateBody mode="call"/>
<an:conclusions mode="call" />
</an:debate>
</an:akomaNtoso>
</content>
</output>
</sectionType>

For this to work you would have to set the BungeniManAuthor and
BungeniManAuthorURI metadata on the root section, eithr via an action
or via the initial metadata screen .

Is that clearer ?

Ashok



On 13 December 2012 10:18, <say...@birzeit.edu> wrote:
>
> aha,
> Do you mean that I have to add <metadatas> tag to root section before setting TLCOrganization to output?
>
> <metadatas>
>
> <metadata name="BungeniWorkAuthor" />
>
> <metadata name="BungeniManAuthor" />
>
> <metadata name="BungeniManAuthorAs" />
>
> <metadata name="BungeniExpAuthorAs" />
>
> <metadata name="BungeniWorkAuthorAs" />
>
> </metadatas>

Samar Ayesh

unread,
Dec 13, 2012, 2:27:15 AM12/13/12
to bungeni...@googlegroups.com, Samar A. Ayesh
Yes Ashok, this is what I missed ..

Samar Ayesh

unread,
Dec 13, 2012, 3:17:17 AM12/13/12
to bungeni...@googlegroups.com
this root section:


 <sectionType name="root"
              prefix="act"
              numstyle="single"
              visibility="user" >
        <metadatas>
          <metadata name="BungeniWorkAuthor" />
        </metadatas>
        <output>
            <meta>
                 <references>
                    <TLCOrganization id="$BungeniWorkAuthor" />
                 </references>

            </meta>
      
            <content>
                <akomaNtoso>
                    <act>
                        <meta mode="call"/>
                        <preface mode="call" />
                        <preamble mode="call" />
                        <body  mode="call"/>
                        <conclusions mode="call" />
                    </act>
                </akomaNtoso>
            </content>
        </output>
    </sectionType>

On Thu, Dec 13, 2012 at 10:13 AM, Samar Ayesh <say...@birzeit.edu> wrote:
I just added metadatas tag to root section but it didn't work ,
I added an: namespace prefix as you wrote also.. but exporting to xml failed!
even though namespaces are declaired in doc_types file>>
 <outputs>
        <namespace prefix="an" type="main" desc="Akoma Ntoso" uri="http://www.akomantoso.org/2.0" />
        <namespace prefix="bg" type="proprietary" desc="Proprietary" uri="http://www.proprietary.org" />       
    </outputs>

Is there something missing to get it to work?


To view this discussion on the web visit https://groups.google.com/d/msg/bungeni-editor/-/nFZBGGMifF8J.

To post to this group, send email to bungeni...@googlegroups.com.
To unsubscribe from this group, send email to bungeni-edito...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bungeni-editor?hl=en.




--
 ___________________________
 Samar Ayesh

Reply all
Reply to author
Forward
0 new messages