Skip to content

Repository files navigation

SeBridge

An agent that lets you access the semantic web through the social web, acting as a bridge between the two.

semanticbridgyfed_illustration.jpg

Connected to the openlink-virtuoso-endpoint based on dbpedia and SPARQL:

semanti_fed2.png

Installation

  1. Clone the Repository:

  2. Install Dependencies:

From now on, in the /app-folder, run:

npm install
  1. Configure Your Host:

Create a .env file to define your environment variables.

Schema of configuration (can also be found at app/.env.template:

MASTODON_API_KEY=your-api-key
ACCOUNT_NAME=your-account-name
URL=url-to-my-instance
      
USER_ANSWERING_SCHEDULE="*/3 * * * *" #schedule to answer requests from users
SE_HASHTAG="semanticweb"
  
SPARQL_ENDPOINT="http://localhost:3030/my-knowledge-base"
SPARQL_QUERY_SUFFIX="/query"
SPARQL_BODY_FORMAT="json"
SPARQL_QUERY_ACCEPT_HEADER="application/trig"

Depending on the triple store, the .env-setup might be different, for example:

DBPEDIA

  • SPARQL_ENDPOINT="https://dbpedia.org"
  • SPARQL_QUERY_SUFFIX="/sparql"
  • SPARQL_BODY_FORMAT="application/rdf+xml"
  • SPARQL_QUERY_ACCEPT_HEADER="application/rdf+xml"

APACHE JENA FUSEKI

That's it! Your server should be up and running!

LLM

Setup virtual environment:

bash python -m venv venv

Install requirements:

bash python -m pip install -r requirements.txt

Build with Meta Lama 3 and ollama.

About

Short for: Semantic-Web Bridge - an agent that is accessible through the social web and enables to access and work on the semantic web with SPARQL, acting as bridging technology between the two.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages