#3 xsl to process xml

open
7
2007-06-07
2003-01-18
No

here is the patch

Discussion

    • milestone: --> enterprise-introspector
    • summary: gcc HEAD patch for 0.4 --> xsl to process xml
     
  • Logged In: YES
    user_id=147871
    Originator: YES

    here is a start of an xsl to process the output of the new gcc xml
    and a change to emit the param name of the function
    File Added: svn.diff-5

     
  • patches for the two files

     
    Attachments
  • Logged In: YES
    user_id=147871
    Originator: YES

    I have created a simple rdf transformation that works on the split files:

    1. split the file :
    xml_split -b tree-dump-split/split -cdequeue_and_dump tree-dump.i .xml.tidy

    2. transform a fragment into rdf :
    xsltproc ~/experiments/sp/gcc/svn/build2/gcc/tree_2_rdf.xsl split-25.tidy

    3. pull the fragment into redland :
    rdfproc TEST parse test.rdf

    4. serialize :
    rdfproc TEST serialize ntriples

    if the rdf file has the same name and is overwritten, then redland will merge all the graphs.

    File Added: tree_2_rdf.xsl

     
    • labels: 310674 --> OWL-ONTOLOGY
    • assigned_to: nobody --> mdupont
    • status: open --> pending
     
  • updated version

     
    Attachments
    • status: pending --> open
     
  • Logged In: YES
    user_id=147871
    Originator: YES

    added literals
    added integer files
    replace " " with "_" in the field name
    here is the for loop
    find . -name \*.tidy -print -exec bash ../process.sh TREE_NODE {} \; > log.txt 2>&1

    process.sh :
    ----------------------------------------------------------
    # here we process the files passed as a parameter
    jobname=$1
    filename=$2
    xsltproc -stringparam inputfile $filename ~/experiments/sp/gcc/svn/build2/gcc/tree_2_rdf.xsl $filename > ${jobname}.rdf

    File Added: tree_2_rdf.xsl