#Processed by Id: cwm.py,v 1.190 2006/08/09 23:20:42 syosi Exp 
        #    using base file:///home/connolly/w3ccvs/WWW/2004/01/rdxh/
        
#  Notation3 generation by
#       notation3.py,v 1.193 2007/01/26 03:33:01 timbl Exp

#   Base was: file:///home/connolly/w3ccvs/WWW/2004/01/rdxh/
    @prefix admin: <http://webns.net/mvcb/> .
    @prefix dc: <http://purl.org/dc/elements/1.1/> .
    @prefix default41: <http://usefulinc.com/ns/doap#> .
    @prefix dm: <http://www.w3.org/2000/10/swap/infoset/infoset-daml#> .
    @prefix fn: <http://www.w3.org/2006/xpath-functions#> .
    @prefix foaf: <http://xmlns.com/foaf/0.1/> .
    @prefix grddl: <http://www.w3.org/2003/g/data-view#> .
    @prefix gspec: <http://www.w3.org/2004/01/rdxh/spec_rules#> .
    @prefix gt: <grddl-rule-tests#> .
    @prefix list: <http://www.w3.org/2000/10/swap/list#> .
    @prefix log: <http://www.w3.org/2000/10/swap/log#> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix s: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix str: <http://www.w3.org/2000/10/swap/string#> .
    @prefix x: <http://www.w3.org/2007/ont/xml#> .
    
     @forAll gt:O,
                gt:P,
                gt:S,
                <grddl-rule-tests-in.n3#BASE>,
                <grddl-rule-tests-in.n3#E>,
                <grddl-rule-tests-in.n3#G>,
                <grddl-rule-tests-in.n3#I>,
                <grddl-rule-tests-in.n3#IR>,
                <grddl-rule-tests-in.n3#IRDOCNODE>,
                <grddl-rule-tests-in.n3#N>,
                <grddl-rule-tests-in.n3#NODE>,
                <grddl-rule-tests-in.n3#NSDOC>,
                <grddl-rule-tests-in.n3#NSNAME>,
                <grddl-rule-tests-in.n3#TX>,
                <grddl-rule-tests-in.n3#TXDOCNODE>,
                <grddl-rule-tests-in.n3#V>,
                <grddl-rules3.n3#BASE>,
                <grddl-rules3.n3#E>,
                <grddl-rules3.n3#E_REL>,
                <grddl-rules3.n3#F>,
                <grddl-rules3.n3#G>,
                <grddl-rules3.n3#H>,
                <grddl-rules3.n3#IR>,
                <grddl-rules3.n3#N>,
                <grddl-rules3.n3#NODE>,
                <grddl-rules3.n3#NS>,
                <grddl-rules3.n3#NSDOC>,
                <grddl-rules3.n3#PDOC>,
                <grddl-rules3.n3#PNAME>,
                <grddl-rules3.n3#PROFID>,
                <grddl-rules3.n3#P_REF>,
                <grddl-rules3.n3#R>,
                <grddl-rules3.n3#RDFXML>,
                <grddl-rules3.n3#REF>,
                <grddl-rules3.n3#T>,
                <grddl-rules3.n3#TP>,
                <grddl-rules3.n3#TURI>,
                <grddl-rules3.n3#TX>,
                <grddl-rules3.n3#TXDOC>,
                <grddl-rules3.n3#TXNODE>,
                <grddl-rules3.n3#TXURI>,
                <grddl-rules3.n3#T_REF>,
                <grddl-rules3.n3#V>,
                <grddl-rules3.n3#Vnorm>,
                <owlAx.n3#C>,
                <owlAx.n3#C>,
                <owlAx.n3#O>,
                <owlAx.n3#O>,
                <owlAx.n3#P>,
                <owlAx.n3#P>,
                <owlAx.n3#S>,
                <owlAx.n3#S>.
         @forSome <grddl-rule-tests.n3#_g0>,
                <grddl-rule-tests.n3#_g1>,
                <grddl-rule-tests.n3#_g10>,
                <grddl-rule-tests.n3#_g11>,
                <grddl-rule-tests.n3#_g12>,
                <grddl-rule-tests.n3#_g13>,
                <grddl-rule-tests.n3#_g2>,
                <grddl-rule-tests.n3#_g3>,
                <grddl-rule-tests.n3#_g4>,
                <grddl-rule-tests.n3#_g5>,
                <grddl-rule-tests.n3#_g6>,
                <grddl-rule-tests.n3#_g7>,
                <grddl-rule-tests.n3#_g8>,
                <grddl-rule-tests.n3#_g9>,
                <#_g0>,
                <#_g1>,
                <#_g2>,
                <#_g3>,
                <#_g4>,
                <#_g5> .
    
    "file:///home/connolly/w3ccvs/WWW/2004/01/rdxh/doc.html"     fn:doc <grddl-rule-tests.n3#_g9> .
    
    "file:///home/connolly/w3ccvs/WWW/2004/01/rdxh/policy.p3q"     fn:doc <grddl-rule-tests.n3#_g8> .
    
    "http://www.w3.org/2000/06/dc-extract/dc-extract.xsl"     fn:doc <grddl-rule-tests.n3#_g4> .
    
    "http://www.w3.org/2001/sw/grddl-wg/td/getAuthor.xsl"     fn:doc <grddl-rule-tests.n3#_g0> .
    
    "http://www.w3.org/2001/sw/grddl-wg/td/glean_title.xsl"     fn:doc <grddl-rule-tests.n3#_g1> .
    
    "http://www.w3.org/2001/sw/grddl-wg/td/grokSheet.xsl"     fn:doc <grddl-rule-tests.n3#_g2> .
    
    "http://www.w3.org/2001/sw/grddl-wg/td/projects.xml"     fn:doc <grddl-rule-tests.n3#_g7> .
    
    "http://www.w3.org/2001/sw/grddl-wg/td/titleauthor.html"     fn:doc <grddl-rule-tests.n3#_g6> .
    
    "http://www.w3.org/2003/12/rdf-in-xhtml-xslts/grokXFN.xsl"     fn:doc <grddl-rule-tests.n3#_g5> .
    
    "http://www.w3.org/2003/g/td/friends"     fn:doc <grddl-rule-tests.n3#_g10> .
    
    "http://www.w3.org/2004/01/rdxh/grokP3Q.xsl"     fn:doc <grddl-rule-tests.n3#_g3> .
      ( <grddl-rule-tests.n3#_g0>
        <grddl-rule-tests.n3#_g6> )
         gspec:resultTree  [
             gspec:rdfParse {<http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2>     <http://xmlns.com/foaf/0.1/maker> <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9> .
            <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9>     a <http://xmlns.com/foaf/0.1/Agent>;
                 <http://xmlns.com/foaf/0.1/name> "The Jimi Hendrix Experience" .
            } ] .
      ( <grddl-rule-tests.n3#_g1>
        <grddl-rule-tests.n3#_g6> )
         gspec:resultTree  [
             gspec:rdfParse {<http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2>     <http://purl.org/dc/elements/1.1/title> "Are You Experienced?" .
            } ] .
      ( <grddl-rule-tests.n3#_g10>
        """
*[local-name()="html" and
  namespace-name()="http://www.w3.org/1999/xhtml"] /
 *[local-name()="head" and
   namespace-name()="http://www.w3.org/1999/xhtml"]""" )
         gspec:xpath <grddl-rule-tests.n3#_g12> .
      ( <grddl-rule-tests.n3#_g10>
        "/*" )
         gspec:xpath  [
             fn:base-uri "http://www.w3.org/2003/g/td/friends" ] .
      ( <grddl-rule-tests.n3#_g11>
        "@profile" )
         gspec:xpath  [
             fn:string "http://www.w3.org/2003/g/data-view" ] .
      ( <grddl-rule-tests.n3#_g12>
        "@profile" )
         gspec:xpath  [
             fn:string "http://www.w3.org/2003/g/td/xfn-workalike" ] .
      ( <grddl-rule-tests.n3#_g13>
        "@href" )
         gspec:xpath  [
             fn:string "http://www.w3.org/2000/06/dc-extract/dc-extract.xsl" ] .
      ( <grddl-rule-tests.n3#_g13>
        "@rel" )
         gspec:xpath  [
             fn:string "transformation among others" ] .
      ( <grddl-rule-tests.n3#_g2>
        <grddl-rule-tests.n3#_g7> )
         gspec:resultTree  [
             gspec:rdfParse {
              [      <http://purl.org/dc/elements/1.1/title> "AutoSemantics" ].
            } ] .
      ( <grddl-rule-tests.n3#_g3>
        <grddl-rule-tests.n3#_g8> )
         gspec:resultTree  [
             gspec:rdfParse { @forSome <grddl-rule-tests.n3#_g14> .
            <grddl-rule-tests.n3#_g14>     gt:max_age 604800 .
            <policy.p3q>     gt:EXPIRY <grddl-rule-tests.n3#_g14> .
            } ] .
      ( <grddl-rule-tests.n3#_g4>
        <grddl-rule-tests.n3#_g9> )
         gspec:resultTree  [
             gspec:rdfParse {<doc.html>     <http://purl.org/dc/elements/1.1/subject> "ADAM; Simple Search; Index+; prototype" .
            } ] .
      ( <grddl-rule-tests.n3#_g5>
        <grddl-rule-tests.n3#_g10> )
         gspec:resultTree  [
             gspec:rdfParse {<grddl-rule-tests-in.n3#bob>     <grddl-rule-tests-in.n3#met> <grddl-rule-tests-in.n3#sally> .
            } ] .
      ( <grddl-rule-tests.n3#_g6>
        "/*" )
         gspec:xpath  [
             fn:base-uri "http://www.w3.org/2001/sw/grddl-wg/td/titleauthor.html" ] .
      ( <grddl-rule-tests.n3#_g6>
        """/*/@*[local-name()="transformation" and
    namespace-uri()=
    "http://www.w3.org/2003/g/data-view#"]""" )
         gspec:xpath  [
             fn:string """glean_title.xsl
			http://www.w3.org/2001/sw/grddl-wg/td/getAuthor.xsl""" ] .
      ( <grddl-rule-tests.n3#_g7>
        "/*" )
         gspec:xpath  [
             fn:base-uri "http://www.w3.org/2001/sw/grddl-wg/td/projects.xml" ] .
      ( <grddl-rule-tests.n3#_g7>
        """/*/@*[local-name()="transformation" and
    namespace-uri()=
    "http://www.w3.org/2003/g/data-view#"]""" )
         gspec:xpath  [
             fn:string "grokSheet.xsl" ] .
      ( <grddl-rule-tests.n3#_g8>
        "/*" )
         gspec:xpath  [
             fn:base-uri "file:///home/connolly/w3ccvs/WWW/2004/01/rdxh/policy.p3q";
             fn:namespace-uri "http://www.w3.org/2004/01/rdxh/p3q-ns-example" ] .
      ( <grddl-rule-tests.n3#_g9>
        """
*[local-name()="html" and
  namespace-name()="http://www.w3.org/1999/xhtml"] /
 *[local-name()="head" and
   namespace-name()="http://www.w3.org/1999/xhtml"]""" )
         gspec:xpath <grddl-rule-tests.n3#_g11> .
      ( <grddl-rule-tests.n3#_g9>
        """.//*[namespace-name()="http://www.w3.org/1999/xhtml" and
        (local-name() = "a"
         or local-name() = "link")""" )
         gspec:xpath <grddl-rule-tests.n3#_g13> .
      ( <grddl-rule-tests.n3#_g9>
        "/*" )
         gspec:xpath  [
             fn:base-uri "file:///home/connolly/w3ccvs/WWW/2004/01/rdxh/doc.html" ] .
    
    <doc.html>     a grddl:InformationResource;
         gt:testLink "http://www.w3.org/2000/06/dc-extract/dc-extract.xsl";
         gt:testProfile "http://www.w3.org/2003/g/data-view";
         gt:testTrans  [
             gt:graph {<doc.html>     <http://purl.org/dc/elements/1.1/subject> "ADAM; Simple Search; Index+; prototype" .
            };
             gt:trans <http://www.w3.org/2000/06/dc-extract/dc-extract.xsl> ];
         grddl:result {<doc.html>     <http://purl.org/dc/elements/1.1/subject> "ADAM; Simple Search; Index+; prototype" .
        } .
    
    gt:trans     s:range grddl:InformationResource .
    
    <grddl-rule-tests.n3#_g0>     fn:base-uri "http://www.w3.org/2001/sw/grddl-wg/td/getAuthor.xsl" .
    
    <grddl-rule-tests.n3#_g1>     fn:base-uri "http://www.w3.org/2001/sw/grddl-wg/td/glean_title.xsl" .
    
    <grddl-rule-tests.n3#_g10>     grddl:transformation <http://www.w3.org/2003/12/rdf-in-xhtml-xslts/grokXFN.xsl>;
         gspec:profileName "http://www.w3.org/2003/g/td/xfn-workalike";
         fn:base-uri "http://www.w3.org/2003/g/td/friends";
         <#_g4> {<grddl-rule-tests-in.n3#bob>     <grddl-rule-tests-in.n3#met> <grddl-rule-tests-in.n3#sally> .
        } .
    
    <grddl-rule-tests.n3#_g11>     fn:base-uri "file:///home/connolly/w3ccvs/WWW/2004/01/rdxh/doc.html" .
    
    <grddl-rule-tests.n3#_g12>     fn:base-uri "http://www.w3.org/2003/g/td/friends" .
    
    <grddl-rule-tests.n3#_g13>     fn:base-uri "file:///home/connolly/w3ccvs/WWW/2004/01/rdxh/doc.html" .
    
    <grddl-rule-tests.n3#_g2>     fn:base-uri "http://www.w3.org/2001/sw/grddl-wg/td/grokSheet.xsl" .
    
    <grddl-rule-tests.n3#_g3>     fn:base-uri "http://www.w3.org/2004/01/rdxh/grokP3Q.xsl" .
    
    <grddl-rule-tests.n3#_g4>     fn:base-uri "http://www.w3.org/2000/06/dc-extract/dc-extract.xsl" .
    
    <grddl-rule-tests.n3#_g5>     fn:base-uri "http://www.w3.org/2003/12/rdf-in-xhtml-xslts/grokXFN.xsl" .
    
    <grddl-rule-tests.n3#_g6>     grddl:transformation <http://www.w3.org/2001/sw/grddl-wg/td/getAuthor.xsl>,
                <http://www.w3.org/2001/sw/grddl-wg/td/glean_title.xsl>;
         fn:base-uri "http://www.w3.org/2001/sw/grddl-wg/td/titleauthor.html";
         <#_g0> {<http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2>     <http://purl.org/dc/elements/1.1/title> "Are You Experienced?" .
        };
         <#_g1> {<http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2>     <http://xmlns.com/foaf/0.1/maker> <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9> .
        <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9>     a <http://xmlns.com/foaf/0.1/Agent>;
             <http://xmlns.com/foaf/0.1/name> "The Jimi Hendrix Experience" .
        } .
    
    <grddl-rule-tests.n3#_g7>     grddl:transformation <http://www.w3.org/2001/sw/grddl-wg/td/grokSheet.xsl>;
         fn:base-uri "http://www.w3.org/2001/sw/grddl-wg/td/projects.xml";
         <#_g2> {
          [      <http://purl.org/dc/elements/1.1/title> "AutoSemantics" ].
        } .
    
    <grddl-rule-tests.n3#_g8>     grddl:transformation <http://www.w3.org/2004/01/rdxh/grokP3Q.xsl>;
         fn:base-uri "file:///home/connolly/w3ccvs/WWW/2004/01/rdxh/policy.p3q";
         <#_g3> { @forSome <grddl-rule-tests.n3#_g14> .
        <grddl-rule-tests.n3#_g14>     gt:max_age 604800 .
        <policy.p3q>     gt:EXPIRY <grddl-rule-tests.n3#_g14> .
        } .
    
    <grddl-rule-tests.n3#_g9>     grddl:transformation <http://www.w3.org/2000/06/dc-extract/dc-extract.xsl>;
         gspec:profileName "http://www.w3.org/2003/g/data-view";
         fn:base-uri "file:///home/connolly/w3ccvs/WWW/2004/01/rdxh/doc.html";
         <#_g5> {<doc.html>     <http://purl.org/dc/elements/1.1/subject> "ADAM; Simple Search; Index+; prototype" .
        } .
    
    <policy.p3q>     a grddl:InformationResource;
         gt:testNsDoc <http://www.w3.org/2004/01/rdxh/p3q-ns-example>;
         gt:testTrans  [
             gt:graph { @forSome <grddl-rule-tests.n3#_g14> .
            <grddl-rule-tests.n3#_g14>     gt:max_age 604800 .
            <policy.p3q>     gt:EXPIRY <grddl-rule-tests.n3#_g14> .
            };
             gt:trans <http://www.w3.org/2004/01/rdxh/grokP3Q.xsl> ];
         grddl:result { @forSome <grddl-rule-tests.n3#_g14> .
        <grddl-rule-tests.n3#_g14>     gt:max_age 604800 .
        <policy.p3q>     gt:EXPIRY <grddl-rule-tests.n3#_g14> .
        } .
    
    <http://lists.w3.org/Archives/Public/public-grddl-comments/>     s:label "public-grddl-comments" .
    
    s:Property     s:label "Property" .
    
    <http://www.w3.org/2000/06/dc-extract/dc-extract.xsl>     a grddl:InformationResource,
                grddl:Transformation;
         grddl:transformationProperty <#_g5> .
    
    <http://www.w3.org/2001/sw-grddl-wg/>     s:label "the GRDDL Working Group" .
    
    <http://www.w3.org/2001/sw/grddl-wg/td/getAuthor.xsl>     a grddl:InformationResource,
                grddl:Transformation;
         grddl:transformationProperty <#_g1> .
    
    <http://www.w3.org/2001/sw/grddl-wg/td/glean_title.xsl>     a grddl:InformationResource,
                grddl:Transformation;
         grddl:transformationProperty <#_g0> .
    
    <http://www.w3.org/2001/sw/grddl-wg/td/grokSheet.xsl>     a grddl:InformationResource,
                grddl:Transformation;
         grddl:transformationProperty <#_g2> .
    
    <http://www.w3.org/2001/sw/grddl-wg/td/projects.xml>     a grddl:InformationResource;
         gt:testTrans  [
             gt:graph {
              [      <http://purl.org/dc/elements/1.1/title> "AutoSemantics" ].
            };
             gt:trans <http://www.w3.org/2001/sw/grddl-wg/td/grokSheet.xsl> ];
         gt:testTxAttr "grokSheet.xsl";
         grddl:result {
          [      <http://purl.org/dc/elements/1.1/title> "AutoSemantics" ].
        } .
    
    <http://www.w3.org/2001/sw/grddl-wg/td/titleauthor.html>     a grddl:InformationResource;
         gt:testTrans  [
             gt:graph {<http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2>     <http://xmlns.com/foaf/0.1/maker> <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9> .
            <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9>     a <http://xmlns.com/foaf/0.1/Agent>;
                 <http://xmlns.com/foaf/0.1/name> "The Jimi Hendrix Experience" .
            };
             gt:trans <http://www.w3.org/2001/sw/grddl-wg/td/getAuthor.xsl> ],
                 [
             gt:graph {<http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2>     <http://purl.org/dc/elements/1.1/title> "Are You Experienced?" .
            };
             gt:trans <http://www.w3.org/2001/sw/grddl-wg/td/glean_title.xsl> ];
         gt:testTxAttr """glean_title.xsl
			http://www.w3.org/2001/sw/grddl-wg/td/getAuthor.xsl""";
         grddl:result {<http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2>     <http://purl.org/dc/elements/1.1/title> "Are You Experienced?" .
        },
                {<http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2>     <http://xmlns.com/foaf/0.1/maker> <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9> .
        <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9>     a <http://xmlns.com/foaf/0.1/Agent>;
             <http://xmlns.com/foaf/0.1/name> "The Jimi Hendrix Experience" .
        },
                {<http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2>     <http://purl.org/dc/elements/1.1/title> "Are You Experienced?";
             <http://xmlns.com/foaf/0.1/maker> <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9> .
        <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9>     a <http://xmlns.com/foaf/0.1/Agent>;
             <http://xmlns.com/foaf/0.1/name> "The Jimi Hendrix Experience" .
        } .
    
    <http://www.w3.org/2003/12/rdf-in-xhtml-xslts/grokXFN.xsl>     a grddl:InformationResource,
                grddl:Transformation;
         grddl:transformationProperty <#_g4> .
    
    <http://www.w3.org/2003/g/data-view>     <http://webns.net/mvcb/generatorAgent> <http://purl.org/NET/erdf/extract>;
         <http://www.rddl.org/purposes#normative-reference> <http://www.w3.org/TR/grddl/>,
                <http://www.w3.org/TR/rdf-concepts/>,
                <http://www.w3.org/TR/xslt>;
         <http://xmlns.com/foaf/0.1/maker> grddl:grddl-wg .
    
    grddl:InformationResource     a s:Class;
         s:comment "A resource which has the property that all of its essential characteristics can be conveyed in a message";
         s:isDefinedBy <http://www.w3.org/TR/2004/REC-webarch-20041215/#def-information-resource>;
         s:label "InformationResource" .
    
    grddl:RDFGraph     a s:Class;
         s:comment """a
    set of RDF triples""";
         s:isDefinedBy <http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#dfn-rdf-graph>;
         s:label "RDFGraph" .
    
    grddl:RootNode     a s:Class;
         s:comment """the root of the tree in the XPath data
    model""";
         s:isDefinedBy <http://www.w3.org/TR/1999/REC-xpath-19991116#root-node>;
         s:label "RootNode" .
    
    grddl:Transformation     a s:Class;
         s:comment """an InformationResource that specifies
    a transformation from a set of XML documents to RDF graphs""";
         s:label "Transformation";
         s:subClassOf grddl:InformationResource;
         owl:onProperty grddl:transformationProperty;
         owl:someValuesFrom grddl:TransformationProperty .
    
    grddl:TransformationProperty     a s:Class;
         s:comment """a Property
    that relates XML document root nodes to RDF graphs""";
         s:label "TransformationProperty";
         s:subClassOf s:Property .
    
    grddl:danc     <http://xmlns.com/foaf/0.1/homepage> <http://www.w3.org/People/Connolly/>;
         <http://xmlns.com/foaf/0.1/name> "Dan Connolly" .
    
    grddl:grddl-wg     <http://xmlns.com/foaf/0.1/homepage> <http://www.w3.org/2001/sw-grddl-wg/> .
    
    grddl:grddlProject     default41:homepage <http://www.w3.org/2003/g/data-view>;
         default41:mailing-list <http://lists.w3.org/Archives/Public/public-grddl-comments/>;
         default41:shortdesc """GRDDL
    is a technique for gleaning resource
    descriptions from dialects of
    languages. It's a way of extracting Semantic Web
    data in RDF from XML formats (especially
    XHTML dialects or microformats) via
    transformations identified by URIs and typically expressed in
    XSLT.""" .
    
    grddl:namespaceTransformation     a rdf:Property,
                s:Property;
         s:comment """relates a namespace to a transformation for
    all documents in that namespace""";
         s:label "namespaceTransformation";
         s:range grddl:Transformation .
    
    grddl:profileTransformation     a rdf:Property,
                s:Property;
         s:comment """relates a profile document to a
    transformation for all documents bearing that profile""";
         s:label "profileTransformation";
         s:range grddl:Transformation .
    
    grddl:result     a rdf:Property;
         s:comment """an
    RDF graph obtained from an information resource by directly
    parsing a representation in the standard RDF/XML syntax or
    indirectly by parsing some other dialect using a transformation
    nominated by the document""";
         s:domain grddl:InformationResource;
         s:label "result";
         s:range grddl:RDFGraph .
    
    grddl:transformation     a rdf:Property;
         s:comment """relates a source document to a
    transformation, usually represented in XSLT, that relates the source document syntax
    to the RDF graph syntax""";
         s:domain grddl:RootNode;
         s:label "transformation";
         s:range grddl:Transformation .
    
    grddl:transformationProperty     a owl:FunctionalProperty;
         s:comment """relates a transformation to the algorithm
    specified by the property that computes an RDF graph from an XML
    document node""";
         s:domain grddl:Transformation;
         s:label "transformationProperty";
         s:range grddl:TransformationProperty .
    
    <http://www.w3.org/2003/g/td/friends>     gt:testProfile "http://www.w3.org/2003/g/td/xfn-workalike";
         gt:testTrans  [
             gt:graph {<grddl-rule-tests-in.n3#bob>     <grddl-rule-tests-in.n3#met> <grddl-rule-tests-in.n3#sally> .
            };
             gt:trans <http://www.w3.org/2003/12/rdf-in-xhtml-xslts/grokXFN.xsl> ];
         gt:uridoc  [
         ];
         grddl:result {<grddl-rule-tests-in.n3#bob>     <grddl-rule-tests-in.n3#met> <grddl-rule-tests-in.n3#sally> .
        } .
    
    <http://www.w3.org/2003/g/td/xfn-workalike>     grddl:result {<http://www.w3.org/2003/g/td/xfn-workalike>     grddl:profileTransformation <http://www.w3.org/2003/12/rdf-in-xhtml-xslts/grokXFN.xsl> .
        } .
    
    <http://www.w3.org/2004/01/rdxh/grokP3Q.xsl>     a grddl:InformationResource,
                grddl:Transformation;
         grddl:transformationProperty <#_g3> .
    
    <http://www.w3.org/2004/01/rdxh/p3q-ns-example>     grddl:result {<http://www.w3.org/2004/01/rdxh/p3q-ns-example>     grddl:namespaceTransformation <http://www.w3.org/2004/01/rdxh/grokP3Q.xsl> .
        } .
    
    <http://www.w3.org/People/Connolly/>     s:label "Dan Connolly" .
    
    <http://www.w3.org/TR/1999/REC-xpath-19991116#root-node>     s:label """section
    5.1 Root Node in XML Path Language (XPath) Version
    1.0""" .
    
    <http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#dfn-rdf-graph>     s:label """definition
    in Resource Description Framework (RDF): Concepts and
    Abstract Syntax""" .
    
    <http://www.w3.org/TR/2004/REC-webarch-20041215/#def-information-resource>     s:label "definition in Architecture of the World Wide Web, Volume One" .
    
    <http://www.w3.org/TR/grddl/>     <http://purl.org/dc/elements/1.1/date> "2005-05-15";
         <http://purl.org/dc/elements/1.1/title> """Gleaning
        Resource Descriptions from Dialects of Languages
        (GRDDL)""";
         s:label """Gleaning
        Resource Descriptions from Dialects of Languages
        (GRDDL), 16
        May 2005""" .
    
    <http://www.w3.org/TR/rdf-concepts/>     <http://purl.org/dc/elements/1.1/date> "2004-02-10";
         <http://purl.org/dc/elements/1.1/title> """Resource
      Description Framework (RDF): Concepts and Abstract
      Syntax""";
         s:label """Resource
      Description Framework (RDF): Concepts and Abstract
      Syntax, 10
      February 2004""" .
    
    <http://www.w3.org/TR/xslt>     s:label "XSLT" .
    
    <#_g0>     a grddl:TransformationProperty .
    
    <#_g1>     a grddl:TransformationProperty .
    
    <#_g2>     a grddl:TransformationProperty .
    
    <#_g3>     a grddl:TransformationProperty .
    
    <#_g4>     a grddl:TransformationProperty .
    
    <#_g5>     a grddl:TransformationProperty .
    {
        <doc.html>     <http://purl.org/dc/elements/1.1/subject> "ADAM; Simple Search; Index+; prototype" .
        
        }     a grddl:RDFGraph .
    {
        <grddl-rule-tests-in.n3#bob>     <grddl-rule-tests-in.n3#met> <grddl-rule-tests-in.n3#sally> .
        
        }     a grddl:RDFGraph .
    {
        <http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2>     <http://purl.org/dc/elements/1.1/title> "Are You Experienced?" .
        
        }     a grddl:RDFGraph .
    {
        <http://www.w3.org/2003/g/td/xfn-workalike>     grddl:profileTransformation <http://www.w3.org/2003/12/rdf-in-xhtml-xslts/grokXFN.xsl> .
        
        }     a grddl:RDFGraph;
         rdf:object <http://www.w3.org/2003/12/rdf-in-xhtml-xslts/grokXFN.xsl>;
         rdf:predicate grddl:profileTransformation;
         rdf:subject <http://www.w3.org/2003/g/td/xfn-workalike> .
    {
        <http://www.w3.org/2004/01/rdxh/p3q-ns-example>     grddl:namespaceTransformation <http://www.w3.org/2004/01/rdxh/grokP3Q.xsl> .
        
        }     a grddl:RDFGraph;
         rdf:object <http://www.w3.org/2004/01/rdxh/grokP3Q.xsl>;
         rdf:predicate grddl:namespaceTransformation;
         rdf:subject <http://www.w3.org/2004/01/rdxh/p3q-ns-example> .
    {
        
          [      <http://purl.org/dc/elements/1.1/title> "AutoSemantics" ].
        
        }     a grddl:RDFGraph .
    {
         @forSome <grddl-rule-tests.n3#_g14> .
        <grddl-rule-tests.n3#_g14>     gt:max_age 604800 .
        <policy.p3q>     gt:EXPIRY <grddl-rule-tests.n3#_g14> .
        
        }     a grddl:RDFGraph .
    {
         @forSome <#_g6> .
          [      <#_g6> <owlAx.n3#O> ].
        <#_g6>     s:range <owlAx.n3#C> .
        
        }     log:implies {<owlAx.n3#O>     a <owlAx.n3#C> .
        } .
    {
        
          ( <grddl-rules3.n3#F>
            <grddl-rules3.n3#G> )
             log:conjunction <grddl-rules3.n3#H> .
        <grddl-rules3.n3#IR>     grddl:result <grddl-rules3.n3#F>,
                    <grddl-rules3.n3#G> .
        
        }     log:implies {<grddl-rules3.n3#IR>     grddl:result <grddl-rules3.n3#H> .
        } .
    {
        <http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2>     <http://xmlns.com/foaf/0.1/maker> <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9> .
        <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9>     a <http://xmlns.com/foaf/0.1/Agent>;
             <http://xmlns.com/foaf/0.1/name> "The Jimi Hendrix Experience" .
        
        }     a grddl:RDFGraph .
    {
        <owlAx.n3#S>     a  [
                 owl:onProperty <owlAx.n3#P>;
                 owl:someValuesFrom <owlAx.n3#C> ] .
        
        }     log:implies {<owlAx.n3#S>     <owlAx.n3#P>  [
                 a <owlAx.n3#C> ] .
        } .
    {
        <grddl-rules3.n3#IR>     log:uri  [
                 fn:doc  [
                     gspec:rdfParse <grddl-rules3.n3#G> ] ] .
        
        }     log:implies {<grddl-rules3.n3#IR>     grddl:result <grddl-rules3.n3#G> .
        } .
    {
        <http://musicbrainz.org/mm-2.1/album/6b050dcf-7ab1-456d-9e1b-c3c41c18eed2>     <http://purl.org/dc/elements/1.1/title> "Are You Experienced?";
             <http://xmlns.com/foaf/0.1/maker> <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9> .
        <http://musicbrainz.org/mm-2.1/artist/33b3c323-77c2-417c-a5b4-af7e6a111cc9>     a <http://xmlns.com/foaf/0.1/Agent>;
             <http://xmlns.com/foaf/0.1/name> "The Jimi Hendrix Experience" .
        
        }     a grddl:RDFGraph .
    {
        
          ( <grddl-rules3.n3#TXNODE>
            <grddl-rules3.n3#R> )
             gspec:resultTree <grddl-rules3.n3#RDFXML> .
        <grddl-rules3.n3#RDFXML>     gspec:rdfParse <grddl-rules3.n3#G> .
        <grddl-rules3.n3#TXDOC>     log:uri  [
                 fn:doc <grddl-rules3.n3#TXNODE> ];
             grddl:transformationProperty <grddl-rules3.n3#TP> .
        
        }     log:implies {<grddl-rules3.n3#R>     <grddl-rules3.n3#TP> <grddl-rules3.n3#G> .
        } .
    {
        <grddl-rules3.n3#IR>     log:uri  [
                 fn:doc <grddl-rules3.n3#R> ] .
        <grddl-rules3.n3#R>     grddl:transformation  [
                 grddl:transformationProperty <grddl-rules3.n3#TP> ];
             <grddl-rules3.n3#TP> <grddl-rules3.n3#G> .
        
        }     log:implies {<grddl-rules3.n3#IR>     grddl:result <grddl-rules3.n3#G> .
        } .
    {
        
          ( <grddl-rules3.n3#E>
            "@profile" )
             gspec:xpath  [
                 fn:string <grddl-rules3.n3#V> ] .
          ( <grddl-rules3.n3#N>
            """
*[local-name()="html" and
  namespace-name()="http://www.w3.org/1999/xhtml"] /
 *[local-name()="head" and
   namespace-name()="http://www.w3.org/1999/xhtml"]""" )
             gspec:xpath <grddl-rules3.n3#E> .
          ( <grddl-rules3.n3#P_REF>
            <grddl-rules3.n3#BASE> )
             fn:resolve-uri <grddl-rules3.n3#PROFID> .
          ( <grddl-rules3.n3#Vnorm>
            "[ \t\r\n]+" )
             fn:tokenize  [
                 list:member <grddl-rules3.n3#P_REF> ] .
        <grddl-rules3.n3#E>     fn:base-uri <grddl-rules3.n3#BASE> .
        <grddl-rules3.n3#V>     fn:normalize-space <grddl-rules3.n3#Vnorm> .
        
        }     log:implies {<grddl-rules3.n3#N>     gspec:profileName <grddl-rules3.n3#PROFID> .
        } .
    {
        
          ( <grddl-rules3.n3#N>
            "/*" )
             gspec:xpath <grddl-rules3.n3#E> .
          ( <grddl-rules3.n3#N>
            """/*/@*[local-name()="transformation" and
    namespace-uri()=
    "http://www.w3.org/2003/g/data-view#"]""" )
             gspec:xpath  [
                 fn:string <grddl-rules3.n3#V> ] .
          ( <grddl-rules3.n3#REF>
            <grddl-rules3.n3#BASE> )
             fn:resolve-uri <grddl-rules3.n3#TXURI> .
          ( <grddl-rules3.n3#Vnorm>
            "[ \t\r\n]+" )
             fn:tokenize  [
                 list:member <grddl-rules3.n3#REF> ] .
        <grddl-rules3.n3#E>     fn:base-uri <grddl-rules3.n3#BASE> .
        <grddl-rules3.n3#TX>     log:uri <grddl-rules3.n3#TXURI> .
        <grddl-rules3.n3#V>     fn:normalize-space <grddl-rules3.n3#Vnorm> .
        
        }     log:implies {<grddl-rules3.n3#N>     grddl:transformation <grddl-rules3.n3#TX> .
        } .
    {
         @forSome <#_g7> .
        <#_g7>     log:includes  [
                 rdf:object <grddl-rules3.n3#TX>;
                 rdf:predicate grddl:profileTransformation;
                 rdf:subject <grddl-rules3.n3#PDOC> ] .
        <grddl-rules3.n3#IR>     log:uri  [
                 fn:doc <grddl-rules3.n3#NODE> ] .
        <grddl-rules3.n3#NODE>     gspec:profileName <grddl-rules3.n3#PNAME> .
        <grddl-rules3.n3#PDOC>     log:uri <grddl-rules3.n3#PNAME>;
             grddl:result <#_g7> .
        
        }     log:implies {<grddl-rules3.n3#NODE>     grddl:transformation <grddl-rules3.n3#TX> .
        } .
    {
         @forSome <#_g8> .
          ( <grddl-rules3.n3#NODE>
            "/*" )
             gspec:xpath <grddl-rules3.n3#E> .
        <#_g8>     log:includes  [
                 rdf:object <grddl-rules3.n3#TX>;
                 rdf:predicate grddl:namespaceTransformation;
                 rdf:subject <grddl-rules3.n3#NSDOC> ] .
        <grddl-rules3.n3#E>     fn:namespace-uri <grddl-rules3.n3#NS> .
        <grddl-rules3.n3#IR>     log:uri  [
                 fn:doc <grddl-rules3.n3#NODE> ] .
        <grddl-rules3.n3#NSDOC>     log:uri <grddl-rules3.n3#NS>;
             grddl:result <#_g8> .
        
        }     log:implies {<grddl-rules3.n3#NODE>     grddl:transformation <grddl-rules3.n3#TX> .
        } .
    {
        
          ( <grddl-rules3.n3#E>
            "@href" )
             gspec:xpath  [
                 fn:string <grddl-rules3.n3#T_REF> ] .
          ( <grddl-rules3.n3#E>
            "@rel" )
             gspec:xpath  [
                 fn:string  [
                     fn:normalize-space <grddl-rules3.n3#E_REL> ] ] .
          ( <grddl-rules3.n3#E_REL>
            "[ \t\r\n]+" )
             fn:tokenize  [
                 list:member "transformation" ] .
          ( <grddl-rules3.n3#N>
            """.//*[namespace-name()="http://www.w3.org/1999/xhtml" and
        (local-name() = "a"
         or local-name() = "link")""" )
             gspec:xpath <grddl-rules3.n3#E> .
          ( <grddl-rules3.n3#T_REF>
            <grddl-rules3.n3#BASE> )
             fn:resolve-uri <grddl-rules3.n3#TURI> .
        <grddl-rules3.n3#E>     fn:base-uri <grddl-rules3.n3#BASE> .
        <grddl-rules3.n3#N>     gspec:profileName "http://www.w3.org/2003/g/data-view" .
        <grddl-rules3.n3#T>     log:uri <grddl-rules3.n3#TURI> .
        
        }     log:implies {<grddl-rules3.n3#N>     grddl:transformation <grddl-rules3.n3#T> .
        } .
    
#ENDS

