    # KEHOME/knowledge/applications/SemanticWeb/TAP/MakingStatements.html
    # Aug/22/2003

## Making Statements with MKE + TAP

###
- shell script

    # KEHOME/bin/mkr2rdf
    # Aug/16/2003
    # convert MKR statements to RDF statements
    # usage: mkr2rdf mkrfile rdffile

    export KBFILE="$PWD/$2"
    ke <<EOF
    set kbmode=tap;
    do read from "$1" done;
    exit;
    EOF

###
- example MKR input

    # KEHOME/data/DickMcCullough.html
    # Aug/16/2003

    # MKR input for DickMcCullough.rdf

    DickMcCullough isu Person;
    DickMcCullough has
    	label = Richard H. McCullough,
    	hasGender = male,
    	hasResidence = PioneerCA;

    PioneerCA isu UnitedStatesCity;
    PioneerCA has
    	hasZipCode = 95666,
    	locatedIn = CaliforniaState;

###
- example RDF output

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- TAP KB Fragment. Made available under the TAP KB Open License. Please
         see http://tap.stanford.edu/license.html -->
    <rdf:RDF
        xmlns:tkb=""
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:a="http://tap.stanford.edu/2002/05/GetDataSchema#"
        xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
        xmlns:daml="http://www.daml.org/2001/03/daml+oil#"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
        xmlns:tap="http://tap.stanford.edu/data/">
      <rdfs:Class rdf:ID="Class"/>
      <tap:Person rdf:about="http://tap.stanford.edu/data/DickMcCullough">
        <tap:hasResidence rdf:resource="http://tap.stanford.edu/data/PioneerCA"/>
        <rdfs:label xml:lang="en">Richard H. McCullough</rdfs:label>
        <tap:hasGender>male</tap:hasGender>
      </tap:Person>
      <tap:UnitedStatesCity rdf:about="http://tap.stanford.edu/data/PioneerCA">
        <tap:locatedIn rdf:resource="http://tap.stanford.edu/data/CaliforniaState"/>
        <tap:hasZipCode>95666</tap:hasZipCode>
      </tap:UnitedStatesCity>
      <rdfs:Class rdf:ID="Person"/>
      <rdfs:Class rdf:ID="UnitedStatesCity"/>
    </rdf:RDF>

MKE home