W3C home > Mailing lists > Public > semantic-web@w3.org > July 2014

Re: Transforming RDF into (non-binary!) trees

From: Pat Hayes <phayes@ihmc.us>
Date: Thu, 10 Jul 2014 00:37:24 -0500
Cc: Simon Spero <sesuncedu@gmail.com>, Tim Berners-Lee <timbl@w3.org>, "semantic-web@w3.org" <semantic-web@w3.org>, Paul Tyson <phtyson@sbcglobal.net>
Message-Id: <87268EF3-1B59-4033-884A-E813A6FD0C42@ihmc.us>
To: Victor Porton <porton@narod.ru>

On Jul 6, 2014, at 3:19 PM, Victor Porton <porton@narod.ru> wrote:

> 06.07.2014, 23:05, "Simon Spero" <sesuncedu@gmail.com>:
>> [I'm  not sure if the original poster is looking to construct trees of rdf statements, represent trees in rdf, or represent n-ary predicates. The last requires creating a new object.  Some patterns for doing this are described in [2] (this note predates OWL 2.0, so HasKey axioms were not available).]
> The thing I want is to convert RDF structures like Turtle examples in my draft:
> http://freesoft.portonvictor.org/namespaces.xml
> into an Ada (or you can think about an other programming language) data structure (tree in fact) which should be easy to work with programatically.
> In the examples there are anonymous nodes, which should be get rid of as they are not an inherent part of the tree structure.

Do you mean blank nodes? If so, they ARE an inherent part of RDF graphs, and cannot be "got rid of" without changing the menaing of the RDF, in many cases destroying it completely. 

Pat Hayes

> By the way the structure can be validated, for example not allowing >1 childs when there must be 0..1 childs, and like this.
> It seems that nobody has done this highly useful programming job. So I am going to do it in Ada (after I finish Ada bindings for librdf). Someone should afterward rewrite my Ada code into other programming languages).
> --
> Victor Porton - http://portonvictor.org

IHMC                                     (850)434 8903 home
40 South Alcaniz St.            (850)202 4416   office
Pensacola                            (850)202 4440   fax
FL 32502                              (850)291 0667   mobile (preferred)
phayes@ihmc.us       http://www.ihmc.us/users/phayes
Received on Thursday, 10 July 2014 05:38:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:17 UTC