Giter Site home page Giter Site logo

Comments (10)

cygri avatar cygri commented on June 2, 2024 1

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.

cygri avatar cygri commented on June 2, 2024 1

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.

cygri avatar cygri commented on June 2, 2024 1

Nice job, and good to know!

from d2rq.

cygri avatar cygri commented on June 2, 2024
  • 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.

wisamx avatar wisamx commented on June 2, 2024

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.

cygri avatar cygri commented on June 2, 2024

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.

wisamx avatar wisamx commented on June 2, 2024

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.

wisamx avatar wisamx commented on June 2, 2024

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.

cygri avatar cygri commented on June 2, 2024

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.

wisamx avatar wisamx commented on June 2, 2024

I did the changes, compiled the source code.
and It just worked.
Thanks

from d2rq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.