From: Uldis B. <cap...@gm...> - 2014-06-30 09:45:26
|
A reasoner is probably meant for reasoning over SKOS data, but your source data is in some other (ex:vehicleType, ...) ontology, not in SKOS. You need to convert the data yourself. I don't know how to code that in dotNetRDF but the conversion should be simple enough: iterate through all the resources you need to convert (http://myvehicledata.com/AudiA8, ...) and create new triples in the form needed. Uldis On 27 June 2014 11:19, Mehdi Abbasi <mhd...@gm...> wrote: > Hi Dear, > > I see this RDF/xml with dotnetrdf : > > <rdf:Description rdf:about="http://myvehicledata.com/AudiA8"> > <ex:vehicleType rdf:resource="http://example.org/vehicles/Car"/> > <ex:vehicleType rdf:resource="http://example.org/vehicles/Vehicle"/> > </rdf:Description> > <rdf:Description rdf:about="http://myvehicledata.com/FerrariEnzo"> > <ex:vehicleType rdf:resource="http://example.org/vehicles/Car"/> > <ex:vehicleType rdf:resource="http://example.org/vehicles/SportsCar"/> > <ex:vehicleType rdf:resource="http://example.org/vehicles/Vehicle"/> > </rdf:Description> > <rdf:Description rdf:about="http://myvehicledata.com/FordFiesta"> > <ex:vehicleType rdf:resource="http://example.org/vehicles/Car"/> > <ex:vehicleType rdf:resource="http://example.org/vehicles/Vehicle"/> > </rdf:Description> > </rdf:RDF> > > But I need to make a skos/rdf like this: > <skos:Collection rdf:about="http://myvehicledata.com/AudiA8"> > <skos:broader rdf:resource="http://example.org/vehicles/Car"/> > <skos:broader rdf:resource="http://example.org/vehicles/Vehicle"/> > </skos:Collection> .... > > I try to use SkosReasoner like this: > StaticSkosReasoner reasoner = new StaticSkosReasoner(); > reasoner.Initialise(schema); > reasoner.Apply(data); > > But it does'nt wotk. Is it possible to help me how can generate this > skos/rdf? > > Thank you for your help. > -- > Best regards, > Mehdi Abbasi > > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > dotNetRDF-Support mailing list > dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-support > |