# KEHOME/knowledge/applications/SemanticWeb/TAP/MakingStatements.html # Aug/16/2003 Making Statements with MKE + TAP a.. 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 b.. 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; c.. resulting 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"/> <Person rdf:ID="http://tap.stanford.edu/data/DickMcCullough"> <tap:hasResidence>PioneerCA</tap:hasResidence> <rdfs:label xml:lang="en">Richard H. McCullough</rdfs:label> <tap:hasGender>male</tap:hasGender> </Person> <UnitedStatesCity rdf:ID="http://tap.stanford.edu/data/PioneerCA"> <tap:locatedIn>CaliforniaState</tap:locatedIn> <tap:hasZipCode>95666</tap:hasZipCode> </UnitedStatesCity> <rdfs:Class rdf:ID="Person"/> <rdfs:Class rdf:ID="UnitedStatesCity"/> </rdf:RDF> Dick McCullough knowledge := man do identify od existent done; knowledge haspart proposition list;Received on Saturday, 16 August 2003 07:35:32 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:20:11 GMT