Giter VIP home page Giter VIP logo

latar's Introduction

Latar

A mini RDF Surfaces playground in Prolog.

Latar, Indonesian for 'surface', is an attempt to create a new RDF Surfaces implementation in Prolog using Peirce's Existential Graph methods.

This code is very alpha and experimental.

Install

Install SWIPL : https://www.swi-prolog.org/download/stable

Run

./test.sh

Examples

Alpha

Propositional logic

  • alice : a simple conditional (Alice a Human) -> (Alice a Person)
  • built-in : a simple built-in test
  • contradiction4: a test to spot contradictions in a formula
  • contradiction5: a test to spot contradictions in a formula
  • contradiction6: a test to spot contradictions in a formula
  • data: a repeated data test
  • disjunction : a simple disjunction (Alice likes Coffee) OR (Alice likes Tea)
  • double-to-one: a repeated data test
  • lists: a list processing test
  • nested_negation : 4 level deep negation eventually is an assertion
  • lists : a simple lists test
  • reductio-ad-absurdym: a reduction at absurdum test

Beta

First-order logic

  • socrates : an OWL subClassOf example
  • socrates2 : socrates but with two subClassOf statements
  • abc : disjunction example
  • abcd : disjunction plus triple nested negative surface example

Notation3 (N3)

The N3 serialization of RDF Surfaces can be used using the latar command. We use EYE as precompiler from N3 to Prolog, run the Latar code, and translate back from Prolog to N3.

$ latar n3/socrates.n3s
<urn:example:test> <urn:example:is> true.

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.