| FabioY wrote: | | I have the following statement in my ontology: | I have the following statement in my ontology: | | Book hasChapters Chapter | hasAuthor Author | | If I wanted to query all authors I'd use: | | SELECT * | WHERE { | ?book rdf:type eg:Book; | eg:hasAuthor ?author. | } | | The instance is: | | The Book_A have John, Paul, Ringo, George as authors | | This query returns: | | Book_A | John | Book_A | Paul | Book_A | Ringo | Book_A | George | | Its possible to have this? | | Book_A | [John, Paul, Ringo, George] | Book hasChapters Chapter | hasAuthor Author | | If I wanted to query all authors I'd use: | | SELECT * | WHERE { | ?book rdf:type eg:Book; | eg:hasAuthor ?author. | } | | The instance is: | | The Book_A have John, Paul, Ringo, George as authors | | This query returns: | | Book_A | John | Book_A | Paul | Book_A | Ringo | Book_A | George | | Its possible to have this: | | Book_A | [John, Paul, Ringo, George] | IBL wrote: Here's how to do this in executable English a-book has an author a-name ------------------------------------------ that-book is in the database with author.. that-name this-book has an author this-name ================================= Book_A John Book_A Paul Book_A Ringo Book_A George | This file is an application written in the language Executable English. | You can view, run and change it by pointing a browser | to www.reengineeringllc.com and selecting ForFabioY.