Question was answered here:

http://www.semanticoverflow.com/questions/3839/there-is-a-exception-when-i-create-a-d2rq-model-with-the-mapping-file-from-sql

:-)

Richard


On 24 Mar 2011, at 14:17, 周文涛 wrote:

> Dear,
>  
> Getting a mapping file from sql server 2008 with the help of D2RQ, but there 
> is a exception when I execute the program that generate a model of D2RQ,
> The exception is follows:
>     Exception in thread "main" java.lang.NoSuchFieldError: model
>      at de.fuberlin.wiwiss.d2rq.ModelD2RQ.<init>(ModelD2RQ.java:61)
>      at de.fuberlin.wiwiss.d2rq.ModelD2RQ.<init>(ModelD2RQ.java:35)
>      at net.RDBToRDF.SqlDBToRDF.main(SqlDBToRDF.java:45)
> The caused code is:
> Model d2rqModel=new ModelD2RQ(mappingFile);
> The mapping file is:
> @prefix map: <file:/F:/SMProgram/workspace/RDBToRDF/second.n3#> .
> @prefix db: <> .
> @prefix vocab: <http://localhost:2020/vocab/resource/> .
> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
> @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
> @prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .
> @prefix jdbc: <http://d2rq.org/terms/jdbc/> .
> map:database a d2rq:Database;
>  d2rq:jdbcDriver "com.microsoft.sqlserver.jdbc.SQLServerDriver";
>  d2rq:jdbcDSN "jdbc:sqlserver://127.0.0.1:1433;databaseName=test";
>  d2rq:username "sa";
>  d2rq:password "1986zwt0311";
>  .
> # Table dbo.USER_INFORAMTION
> <file:/F:/SMProgram/workspace/RDBToRDF/second.n3#dbo.USER_INFORAMTION> a 
> d2rq:ClassMap;
>  d2rq:dataStorage map:database;
>  d2rq:uriPattern "dbo.USER_INFORAMTION/@@dbo.USER_INFORAMTION.ID@@";
>  d2rq:class <http://localhost:2020/vocab/resource/dbo.USER_INFORAMTION>;
>  d2rq:classDefinitionLabel "dbo.USER_INFORAMTION";
>  .
> <file:/F:/SMProgram/workspace/RDBToRDF/second.n3#dbo.USER_INFORAMTION__label> 
> a d2rq:PropertyBridge;
>  d2rq:belongsToClassMap 
> <file:/F:/SMProgram/workspace/RDBToRDF/second.n3#dbo.USER_INFORAMTION>;
>  d2rq:property rdfs:label;
>  d2rq:pattern "dbo.USER_INFORAMTION #@@dbo.USER_INFORAMTION.ID@@";
>  .
> map:USER_INFORAMTION_ID a d2rq:PropertyBridge;
>  d2rq:belongsToClassMap 
> <file:/F:/SMProgram/workspace/RDBToRDF/second.n3#dbo.USER_INFORAMTION>;
>  d2rq:property vocab:USER_INFORAMTION_ID;
>  d2rq:propertyDefinitionLabel "USER_INFORAMTION ID";
>  d2rq:column "dbo.USER_INFORAMTION.ID";
>  d2rq:datatype xsd:int;
>  .
> map:USER_INFORAMTION_UserName a d2rq:PropertyBridge;
>  d2rq:belongsToClassMap 
> <file:/F:/SMProgram/workspace/RDBToRDF/second.n3#dbo.USER_INFORAMTION>;
>  d2rq:property vocab:USER_INFORAMTION_UserName;
>  d2rq:propertyDefinitionLabel "USER_INFORAMTION UserName";
>  d2rq:column "dbo.USER_INFORAMTION.UserName";
>  .
> map:USER_INFORAMTION_UserPassword a d2rq:PropertyBridge;
>  d2rq:belongsToClassMap 
> <file:/F:/SMProgram/workspace/RDBToRDF/second.n3#dbo.USER_INFORAMTION>;
>  d2rq:property vocab:USER_INFORAMTION_UserPassword;
>  d2rq:propertyDefinitionLabel "USER_INFORAMTION UserPassword";
>  d2rq:column "dbo.USER_INFORAMTION.UserPassword";
>  .
> Bests,
> Zhou
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software 
> be a part of the solution? Download the Intel(R) Manageability Checker 
> today! 
> http://p.sf.net/sfu/intel-dev2devmar_______________________________________________
> d2rq-map-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel


------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to