ravikumar10 / genyris

Automatically exported from code.google.com/p/genyris
Other
0 stars 0 forks source link

Import semantic web ontologoies (RDF) #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add a feature to allow import of RDF/OWL.

OK what does this actually mean? Perhaps we assume that people will most 
commonly want to import the Tbox not the Abox. ie concepts not data. So then 
how? I think a global graph would work, the classes and properties etc should 
be ok. 

Hence the graph operations will be available at a global level, and perhaps 
property setting and getting methods available on objects (since the global 
graph can store these). 

Not sure how this will turn out, the only way is to try.

This means that we should see syntax like:

 import 'http://dublincore.org/2010/10/11/dcterms.rdf'
 @prefix dcterms 'http://purl.org/dc/terms/'
 print ^dcterms:title!vars # print all the properties of the title

Uncharted territory...

Original issue reported on code.google.com by birchb1...@gmail.com on 9 Feb 2012 at 8:52

GoogleCodeExporter commented 9 years ago
It should be possible to use it to create classification predicates for classes 
automatically.

Original comment by birchb1...@gmail.com on 9 Feb 2012 at 8:53

GoogleCodeExporter commented 9 years ago
Given a symbol, which == a resource, then we should be able to us the put . 
Example
@prefix domain 'http://some.org/stuff'
^domain:aResource # interned
^domain:aResoure
   .put ^dcterm:title 'You can run but you cannot hide."
   .put ^dcterm:contributor 'birchb1024@gmail.com'

Original comment by birchb1...@gmail.com on 9 Feb 2012 at 8:58

GoogleCodeExporter commented 9 years ago
How about:

use ^(this is a list)
   .put ^dcterm:title 'List now has a property'

Remembering Lisp 1.5 et. al. where every object could properties.

Original comment by birchb1...@gmail.com on 9 Feb 2012 at 9:03

GoogleCodeExporter commented 9 years ago
Scheme has putprop, but only for symbols. Which matches RDF, only resources can 
have properties. But in RDF some resources are 'blank nodes' aka 'anonymous 
resource'. Which gives us license to assign properties to any object in 
Genyris, I think.

Original comment by birchb1...@gmail.com on 9 Feb 2012 at 9:09

GoogleCodeExporter commented 9 years ago
In commit 8a999b8b0f0e677f706e6205c7bf403ba558beb9
we can 
^foo (.putprop ^bar 45)

This adds a triple to the global graph.

Original comment by birchb1...@gmail.com on 12 Feb 2012 at 4:30

GoogleCodeExporter commented 9 years ago

Original comment by birchb1...@gmail.com on 30 Apr 2013 at 7:54