Changes between Version 1 and Version 2 of OldRDF2JavaUsingDFKIKnowledgeBase
- Timestamp:
- 12/10/09 10:10:28 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OldRDF2JavaUsingDFKIKnowledgeBase
v1 v2 97 97 When you visualize these set of triples you receive the following picture (only the RDF data is shown, not the RDF Schema). Boxes represent resources (RDF subjects) whereas ellipses show literals (strings), which can only be RDF objects. The named and directed edges visualize the predicates. 98 98 99 http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example1.a.75.gif 99 [[Image(http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example1.a.75.gif)]] 100 100 [[BR]] ''graph representation of these RDF triples'' 101 101 … … 340 340 Assume further we want to assign a new object for Lisa Simpson plus relevant relationships to this knowledge base. You see the graphical representation of the RDF data to assign on the right image below. We will see below, the assignment won't lead to the result you might expect. Later we will show the correct RDF data to assign... 341 341 342 http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example2.a.short.75.gif 342 [[Image(http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example2.a.short.75.gif)]] 343 343 [[BR]] ''the knowledge base so far'' 344 344 345 http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example2.b.short.gif 345 [[Image(http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example2.b.short.gif)]] 346 346 [[BR]] ''RDF data to assign to the knowledge base'' 347 347 … … 359 359 The result (knowledge base) is as follows: 360 360 361 http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example2.c.short.75.gif 361 [[Image(http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example2.c.short.75.gif)]] 362 362 363 363 The result is not quite the one, you might have expected when I started this example. There are several mistakes: The Bart object forgot about his name. Then it still "knows" about his parent, but the Homer object doesn't reflect this relationship. As RDF/S doesn't know anything about inverse slots, this is this correct RDF. Finally it's not quite what we wanted to receive. The problem arose right at the beginning, where we specified, what RDF data to assign to the knowledge base. Let's make another assignment: 364 364 365 http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example2.a.short.75.gif 365 [[Image(http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example2.a.short.75.gif)]] 366 366 [[BR]] ''the knowledge base so far'' 367 367 368 http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example2.b2.short.75.gif 368 [[Image(http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example2.b2.short.75.gif)]] 369 369 [[BR]] ''RDF data to assign to the knowledge base'' 370 370 … … 372 372 However, the result of this assignment will be as follows: 373 373 374 http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example2.d.short.75.gif 374 [[Image(http://www.dfki.uni-kl.de/~schwarz/rdf2java/testdata/example/example2.d.short.75.gif)]]