- From: Richard H. McCullough <rhm@cdepot.net>
- Date: Wed, 30 Apr 2003 17:13:30 -0700
- To: "Roger L. Costello" <costello@mitre.org>
- Cc: <www-rdf-interest@w3.org>
Here's an MKR implementation of a "camera matches" program. The low-level details of the Unicon procedure match_camera(cam1,cam2) are straightforward, and left as an exercise. # KEHOME/knowledge/applications/SemanticWeb/OWL/MatchCamera.mkr # Apr/30/2003 at view = Camera Ontology; desired camera isa Camera with lens = 75-300mm zoom, aperture = 4.5-5.6, shutter speed = 1/500 - 1.0 sec; Hunts isa PhotographyStore; Hunts has store-location = "Malden, MA", phone = 617-555-1234, catalog = Hunts catalog; Hunts catalog isall # Set of Camera Olympus-OM-10; Olympus-OM-18 isa SLR with lens = Lens_Olympus-OM-18, body = Body_Olympus-OM-18; Lens_Olympus-OM-18 has focal-length = 75-300mm zoom, f-stop = 4.5-5.6; Body_Olympus-OM-18 has shutter-speed = [ min = 0.002, max = 1.0, units = seconds ]; Olympus-OM-18 has cost = 325 USD; MatchCatalog isa method with format = [Camera:1, Catalog:2], meaning = { every cam ismem $2 { if MatchCamera od $1, $cam done; then do print od "Yes, $cam MATCHES" done; fi; }; }; MatchCamera isa method with format = [Camera:1, Camera:2], meaning = match_camera, meaningtype = procedure; # Unicon procedure do MatchCatalog od desired camera, Hunts catalog done; ============ Dick McCullough knowledge := man do identify od existent done; knowledge haspart proposition list; ----- Original Message ----- From: "Roger L. Costello" <costello@mitre.org> To: <www-rdf-interest@w3.org> Cc: "Costello,Roger L." <costello@mitre.org> Sent: Monday, April 21, 2003 5:41 AM Subject: Re: Suggestions for implementing a "document matches" program? > > > > > > "I am interested in purchasing a camera with a 75-300mm zoom lens, > > > that has an aperture of 4.5-5.6, and a shutter speed that ranges > > > from 1/500 sec. to 1.0 sec." > > > <?xml version="1.0?> > <PhotographyStore rdf:ID="Hunts" > > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> > <store-location>Malden, MA</store-location> > <phone>617-555-1234</phone> > <catalog rdf:parseType="Collection"> > <SLR rdf:ID="Olympus-OM-10" > xmlns="http://www.camera.org#"> > <lens> > <Lens> > <focal-length>75-300mm zoom</focal-length> > <f-stop>4.5-5.6</f-stop> > </Lens> > </lens> > <body> > <Body> > <shutter-speed rdf:parseType="Resource"> > <min>0.002</min> > <max>1.0</max> > <units>seconds</units> > </shutter-speed> > </Body> > </body> > <cost rdf:parseType="Resource"> > <rdf:value>325</rdf:value> > <currency>USD</currency> > </cost> > </SLR> > </catalog> > </PhotographyStore>
Received on Wednesday, 30 April 2003 20:16:12 UTC