From: Rob V. <rv...@do...> - 2014-06-30 10:29:22
|
Mehdi Uldis is quite correct, the SKOS reasoner only works when provided with a basic SKOS ontology as part of its configuration and when the data being reasoned over has some SKOS elements. It looks like there is no relevant SKOS information in your data (and you didn't show your schema) that can be used to reason additional triples You should instead manually convert your data via code or use a SPARQL update to do this Rob On 30/06/2014 10:45, "Uldis Bojars" <cap...@gm...> wrote: >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 >> > >-------------------------------------------------------------------------- >---- >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 |