Giter Site home page Giter Site logo

carl's People

Contributors

josd avatar melgi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jeeger

carl's Issues

@forAll

Hello, thanks for carl.

question: how can I parse @forall ?
I'm doing something wrong? can I workaround it?

thermostat.n3

@prefix : <#>.
@forAll :x.
{ :thermostat :temp :x } log:implies { :cooling :power :x } .

flag('no-skolem', 'https://melgi.github.io/.well-known/genid/#').
translating file:///home/crvasque/thermostat.n3
scope('file:///home/crvasque/thermostat.n3').
pfx(':','file:///home/crvasque/thermostat.n3#').
parse error at line 2: expected base, prefix or triple

Disallowing literals and blank nodes in predicate position makes logic incomplete

By not allowing literals and blank nodes in predicate position we get the problem that the we can write rules and triples which in "traditional n3" get a result while in this implementation they don't.
Consider the triples:
:a :b "c". :a :b _:x.
and the rule
{:a ?b ?c}=>{?:a ?c ?b}.

This is all valid N3. But applying this rule to the triples would lead to
:a "c" :b. :a _:x :b.
Which could not be parsed by carl.

To guarantee that all output of EYE can be parsed by carl we either need to adapt the semantics of N3 as supported by the reasoner or allow those cases in carl.

Does not build on macOS 10.14.3

src/N3Lexer.cc:1758:18: error: out-of-line definition of 'LexerInput' does not match any declaration in
      'yyFlexLexer'
int yyFlexLexer::LexerInput( char* buf, int max_size )
                 ^~~~~~~~~~
src/N3Lexer.cc:1785:19: error: out-of-line definition of 'LexerOutput' does not match any declaration in
      'yyFlexLexer'
void yyFlexLexer::LexerOutput( const char* buf, int size )
                  ^~~~~~~~~~~

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.