Gerbil Scheme in Action

Gerbil Scheme in Action

Mark Watson
Buy on Leanpub

Table of Contents

Gerbil Scheme in Action

  • Preface
    • A Comment on Licenses
    • Running Gerbil Scheme on macOS and Linux
    • History and Background to the Gerbil Scheme Project
    • Core Gerbil Toolkits Used in this Book: :std/net/request and :std/text/json
    • Suppressing or Fixing Compilation Warning Messages on macOS
  • Setting Up Gerbil Scheme Development Environment
    • Emacs Configuration
  • Google Gemini API
    • Example Code
    • Example Output
  • Ollama
    • Example Code
    • Install Ollama and Pull a Model to Experiment With
    • Example Output
  • OpenAI API
    • Example Code
    • Example Output
  • Inexpensive and Fast LLM Inference Using the Groq Service
    • Structure of Project and Build Instructions
    • groq_inference.ss Utility
    • Example scripts: kimi2.ss and gpt-oss-120b.ss
  • Wikidata API Using SPARQL Queries
    • Example Code
    • Example Output
  • Code for Natural Language Processing (NLP)
    • Structure of Project and Build Instructions
    • Top Level Project Code
    • Other Source Files
    • Test Run:
    • Building and Running the Command Line Tool
  • Gerbil Scheme FFI Example Using the C Language Raptor RDF Library
    • Implementation of a FFI Bridge Library for Raptor
    • Test Code
  • Complete FFI Example: C Language Wrapper for Rasqal SPARQL Library and Sord RDF Datastore Library
    • Library Selection
    • Overview of the Project Structure and Build System
    • Implementation of the C Language Wrapper
    • A Gerbil Scheme Shim to Call The C Language Wrapper Code
    • Gerbil Scheme Main Program for this Example
    • Example Output
  • A Simple In-Memory RDF Store and Query Language in Gerbil Scheme
    • Introduction to RDF and the Goal of This Chapter
    • Data Model: Triples and the Store
    • Parsing SPARQL Queries
    • Query Evaluation: Pattern Matching and Joining
    • Gerbil RDF Implementation
    • Running the Demo and Using the Code
    • Summary and Further Directions
  • Introduction To Writing Command Line Utilities
    • Overview of the Command Line Utilities Project Structure and Build System
    • Simple Structure for Command Line Utilities
    • A More Flexible Structure for Command Line Utilities
    • Wrap Up for Writing Command Line Utilities in Gerbil Scheme and Notes On User Built Libraries
  • Command Line Applications For NLP
    • Re-using the NLP Library For a Command Line Utility to Identify Categories or Topics in Input Text
    • Using OpenAI’s GPT-5 model To Summarize Input Text
Gerbil Scheme in Action/overview

Gerbil Scheme in Action

course_overview

count_chapters
begin_reading
download
p_implied_book_part_name

Gerbil Scheme in Action13 chapters

Begin ›
  1. Preface

  2. Setting Up Gerbil Scheme Development Environment

  3. Google Gemini API

  4. Ollama

  5. OpenAI API

  6. Inexpensive and Fast LLM Inference Using the Groq Service

  7. Wikidata API Using SPARQL Queries

  8. Code for Natural Language Processing (NLP)

  9. Gerbil Scheme FFI Example Using the C Language Raptor RDF Library

  10. Complete FFI Example: C Language Wrapper for Rasqal SPARQL Library and Sord RDF Datastore Library

  11. A Simple In-Memory RDF Store and Query Language in Gerbil Scheme

  12. Introduction To Writing Command Line Utilities

  13. Command Line Applications For NLP