Giter Club home page Giter Club logo

Comments (3)

kburger avatar kburger commented on June 25, 2024

Hi @PderyckeSciensano, for SHACL the correct syntax would be sh:datatype xsd:float (which could be combined with sh:nodeKind sh:Literal, but that's probably not required). This would at least solve the validation part. For the form itself, I'm not sure if there's a widget for floating point input; @janslifka can you confirm or deny this?

from fairdatapoint.

PderyckeSciensano avatar PderyckeSciensano commented on June 25, 2024

Hi Kees, Thx for your answer. I tried the solution you suggested and have the following error: "Unable to update entity data.".
image
image
Just to better understand the scope of my question. If I run a SPARQL query with " FILTER (?lat >= 40.75 && ?lat <= 40.85 && ?long >= -73.98 && ?long <= -73.88)" how do I query against floats and not strings?

from fairdatapoint.

markwilkinson avatar markwilkinson commented on June 25, 2024

You can recast datatypes in SPARQL. For example: xsd:float(?variable))

You need to have xsd in your PREFIX

Also, be aware that the recasting is LOCAL! Unless you assign the recast value to a new variable, you will need to do the recasting in every clause of the query!

Hope that helps!

from fairdatapoint.

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.