Comments (10)
I can't think of any way to make that work with the current release of D2RQ. Avoiding SPARQL queries with variable predicates might help.
from d2rq.
I think the last few comments on #154 may discuss the same problem as this one, and one commenter proposed a fix there.
from d2rq.
Nice job, and good to know!
from d2rq.
- What Version of D2RQ is this?
- What database, and what version of the database?
- Do you have a way of running the shown SQL query directly against the database? If so, what happens?
from d2rq.
D2RQ 0.8.1
Microsoft SQL Server Express (64-bit) v11.0.3000.0
When trying to run the sql command directly on sql server i get the same error.
actually, as I know there no rule like
SELECT "dbo"."Degrees"."Subject" = 'http://localhost:1111/resource/organization/1' AS exprbbe168c0,
Is should be SELECT "dbo"."Degrees"."Subject" AS exprbbe168c0,
just to know I have such a property bridge
map:deg8 a d2rq:PropertyBridge;
d2rq:belongsToClassMap map:Degrees;
d2rq:property dc:subject;
d2rq:propertyDefinitionLabel "Subject";
d2rq:uriColumn "dbo.Degrees.Subject";
.
from d2rq.
Seems to same issue as this. Basically, SQL Server doesn't have a Boolean datatype, so it can't return the result of a boolean expression in the SELECT
list.
from d2rq.
is there any solution to make it work for the d2rq platform with sql server (any version).
or is there any easy patch to the d2r server, I can use.
cause I can't change my database server.
from d2rq.
now I know that to solve my problem, d2rq need to use the case expression, so instead of
"dbo"."Degrees"."Subject" = 'http://localhost:1111/resource/organization/1' AS exprbbe168c0
It must use
CASE WHEN "dbo"."Degrees"."Subject" = 'http://localhost:1111/resource/organization/1' THEN 1 WHEN "dbo"."Degrees"."Subject" <> 'http://localhost:1111/resource/organization/1' THEN 0 END AS exprbbe168c0
now I have to hook into d2rq and change the way how select statements are generated.
is there any guidance or development documents I can use to learn how to do that.
Thank you for the help
from d2rq.
Instructions for building from source are at https://github.com/d2rq/d2rq
If you don't have some Java development experience already, then you might find this a bit of an uphill battle.
from d2rq.
I did the changes, compiled the source code.
and It just worked.
Thanks
from d2rq.
Related Issues (20)
- Dump-rdf on the getting started page
- Unknown argument -b when calling generate-mapping
- link broken on http://d2rq.org/getting-started HOT 1
- Specify multi-column primary key HOT 1
- Incorrect Turtle file with missing mapping HOT 2
- Chinese tuples data will lead to messy code,such as "%E5%9E%8B%E7%B3%96%E5" HOT 1
- Not able to urlify columns with special characters using uriSqlExpression HOT 3
- hi, I am a student ,I know d2rq support window an linux system,Does d2rq support mac? HOT 2
- What structure & mapping should I provide in order to be able to answer a relational query?
- A possibility to merge ONT-D2RQ codebase into this repo HOT 2
- Error when generating mapping from postgresql database
- Load Native JDBC Library
- d2r-server fails to start due to java version with a component number greater than 255 HOT 3
- Dump RDF output to HDFS HOT 1
- Executing SPARQL queries against a ModelD2RQ- java error HOT 3
- insert statement for sparql HOT 1
- You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near HOT 1
- Mapping a propertybirdge into an ontology class HOT 3
- mapping a class and its subclasses from an entity table and attributes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d2rq.