Share

RDF Software Introspector

Tracker: Patches

7 xsl to process xml - ID: 670071
Last Update: Settings changed ( mdupont )

here is the patch


James Michael DuPont ( mdupont ) - 2003-01-18 00:03

7

Open

None

James Michael DuPont

OWL-ONTOLOGY

enterprise-introspector

Public


Comments ( 3 )

Date: 2007-06-07 16:41
Sender: mdupontProject Admin


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


Date: 2007-06-07 15:35
Sender: mdupontProject Admin


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


Date: 2007-06-04 05:16
Sender: mdupontProject Admin


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


Attached Files ( 2 )

Filename Description Download
svn.diff-5 patches for the two files Download
tree_2_rdf.xsl updated version Download

Changes ( 12 )

Field Old Value Date By
File Deleted 232124: 2007-06-07 16:41 mdupont
close_date 2007-06-07 15:36 2007-06-07 16:41 mdupont
File Added 232130: tree_2_rdf.xsl 2007-06-07 16:41 mdupont
status_id Pending 2007-06-07 16:41 mdupont
assigned_to nobody 2007-06-07 15:36 mdupont
status_id Open 2007-06-07 15:36 mdupont
category_id GCC c Compiler Patch 2007-06-07 15:36 mdupont
close_date - 2007-06-07 15:36 mdupont
File Added 232124: tree_2_rdf.xsl 2007-06-07 15:35 mdupont
File Added 231609: svn.diff-5 2007-06-04 05:16 mdupont
summary gcc HEAD patch for 0.4 2007-06-04 05:16 mdupont
artifact_group_id None 2007-06-04 05:16 mdupont