Hi all!
A small question on LDPath. Here the scenario:
@prefix mo: <http://purl.org/ontology/mo/>;
made = foaf:made :: xsd:anyURI ;
genre = foaf:made/mo:genre :: xsd:string;
I get two lists, one for "made" and one for "genre". But how can I made a
LDPath, so that I get the results nested?
Before -----------------------
PROGRAM
@prefix mo: <http://purl.org/ontology/mo/>;
made = foaf:made :: xsd:anyURI ;
genre = foaf:made/mo:genre :: xsd:string ;
RESULT
{made: {<url1>, <url2>, ...}}
{genre: {pop, rock, techno}}
After -----------------------
PROGRAM (example: look at the variable "made")
@prefix mo: <http://purl.org/ontology/mo/>;
made = foaf:made :: xsd:anyURI ;
genre = made/mo:genre :: xsd:string ;
RESULT
{made: {<url1>: { genre: {pop, rock}}, <url2>: {genre: {techno}}}}
This can save many time to get a desired (needed) structure!
Thanks!
Original issue reported on code.google.com by
phlegx.s...@gmail.comon 8 Aug 2012 at 11:23