Hi Shreyes, On 10 Jan 2011, at 18:08, S Shreyes wrote: > C:\Users\shreyes\Desktop\research\software\d2r-server-0.7>generate-mapping -u > ro > ot -p root -d driver.class.name -o map.n3 -b jdbc:mysql://servername/database > Exception in thread "main" java.lang.IllegalArgumentException: No value for > argu > ment: b > at jena.cmdline.CommandLine.process(CommandLine.java:163) > at d2rq.generate_mapping.main(generate_mapping.java:41) > > Can u tell me what should i use for driver class (-d)
For MySQL you don't need to specify the driver class, D2RQ has it already built-in. The correct value would be com.mysql.jdbc.Driver. > base uri (-b) The default base URI should be fine for testing, so just omit that parameter as well. > and the jdbcURL. Start with jdbc:mysql://localhost/dbname but replace "dbname" with the name of the database that contains your tables. (Note: Please keep the mailing list in Cc when responding.) Best, Richard > > Thank You. > > -----Original Message----- > From: Richard Cyganiak [mailto:[email protected]] > Sent: 10 January 2011 22:34 > To: S Shreyes > Cc: d2rq-map-devel (E-mail) > Subject: Re: [d2rq-dev] create a mapping file > > > On 10 Jan 2011, at 16:57, S Shreyes wrote: >> There is a tab known as datamster in protégé which does the similar work. I >> still don't know the exact difference between D2rq and datamaster. > > Sorry but I don't know anything about Datamaster, so I can't answer this > question. > >> My main aim is to retrieve the necessary elements from database where the >> query goes through the rules, then through the merged ontology, then the >> individual ontology and then through the corresponding class which is mapped >> with the attribute in the database. So will D2rq help me do this ? > > Sounds like you want a general-purpose rules engine that can transform > between different ontologies. D2RQ doesn't include such a general-purpose > rules engine. It can answer SPARQL queries against a single database by > transforming them into SQL queries according to a (potentially complex) > mapping. > > Best, > Richard > > >> >> Thank you >> Shreyes >> >> >> -----Original Message----- >> From: Richard Cyganiak [mailto:[email protected]] >> Sent: 10 January 2011 22:19 >> To: S Shreyes >> Cc: [email protected] >> Subject: Re: [d2rq-dev] create a mapping file >> >> Hi Shreyes, >> >> On 10 Jan 2011, at 16:32, S Shreyes wrote: >>> I have created an ontology (*.owl) file in protégé 3.4.4. >>> I want to map the attributes of a database to the classes of the ontology. >>> Can u please guide me to create the mapping file. >> >> Follow the instructions: >> http://www4.wiwiss.fu-berlin.de/bizer/d2r-server/#quickstart >> >> Then look at this: >> http://www4.wiwiss.fu-berlin.de/bizer/d2r-server/#customize >> >> Hope that helps, >> Richard >> >> >>> >>> Thank you >>> shreyes >>> ------------------------------------------------------------------------------ >>> Gaining the trust of online customers is vital for the success of any >>> company >>> that requires sensitive data to be transmitted over the Web. Learn how to >>> best implement a security strategy that keeps consumers' information secure >>> and instills the confidence they need to proceed with transactions. >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> d2rq-map-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel >> > ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ d2rq-map-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
