GithubHelp home page GithubHelp logo

raadjoe / knowledge-data-vu Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 30.0 2.38 MB

Tutorials and Assignments for the Knowledge & Data course @ Vrije Universiteit

Jupyter Notebook 80.82% Python 13.13% CSS 0.32% HTML 4.17% JavaScript 1.56%

knowledge-data-vu's Issues

Give the regular expression in SW-Application/main.js a global flag

On line 10 in main.js the .replace() function uses a regular expression. The current expression looks for the first occurrence of a # and is then satisfied. However, it can occur that a student has multiple instances of # that have to be encoded. E.g. when using both rdf and rdfs in a query.

This gives a confusing error such as Virtuoso 37000 Error SP030: SPARQL compiler, line 1: Missing <namespace-iri-string> in PREFIX declaration at '<' before 'http:' even though the query seems fine and runs in any other external interface such as Yasgui.

See question 335 on Piazza to see a relevant occurrence of this problem.

A very simple fix could be giving the expression a global flag. Replace /#/ with /#/g and that will fix this specific problem. I'm assuming this repository is not the actual source of your storage for the current and upcoming years. So I'm simply opening an issue instead of a PR.

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.