npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@myrmidon/cadmus-refs-dbpedia-lookup

v10.0.1

Published

Cadmus - DBPedia lookup.

Downloads

12

Readme

CadmusRefsDbpediaLookup

📦 @myrmidon/cadmus-refs-dbpedia-lookup

This project was generated using Angular CLI version 20.0.0.

This library provides a DBPedia lookup service for Cadmus. DBPedia is a project that extracts structured information from Wikipedia and makes it available on the Web.

Keyword Lookup

Essential types from DBPedia ontology:

Main properties:

  • docs (array):
    • resource: array with (usually a single?) DBPedia URI.
    • label: array with (usually a single?) string.
    • type: array with DBPedia ontology types (you can use typeName to get their user friendly names, which are just the last token in the corresponding type URI).
    • category: array with DBPedia category URIs.
    • comment: array with comment.

Note that all the values may include <B></B> for bold, and presumably also <I> and <U>.

SPARQL

SPARQL query result skeleton:

{
  "head": {
    "link": [],
    "vars": ["var1", "var2"]
  },
  "results": {
    "distinct": false,
    "ordered": true,
    "bindings": [
      {
        "var1": {
          "type": "uri",
          "value": "http://dbpedia.org/resource/Example"
        },
        "var2": {
          "type": "literal",
          "datatype": "http://www.w3.org/2001/XMLSchema#string",
          "value": "Example value"
        }
      },
      // More results...
    ]
  }
}

In this schema:

  • head contains metadata about the response.
  • vars is a list of variable names used in the SPARQL query.
  • results contains the actual query results.
  • bindings is an array of result objects, each representing a single result.

Each result object contains properties for each variable in vars. The value of each property is another object that describes the value of the variable in the result. This object includes:

  • type: The type of the value (uri, literal, or bnode).
  • value: The actual value.
  • datatype (optional): The datatype of the value. This property is only present for typed literals.

Example:

{
  "head": { "link": [], "vars": ["entity", "name"] },
  "results": {
    "distinct": false,
    "ordered": true,
    "bindings": [
      {
        "entity": {
          "type": "uri",
          "value": "http://dbpedia.org/resource/Amicus_Plato,_sed_magis_amica_veritas"
        },
        "name": {
          "type": "literal",
          "xml:lang": "en",
          "value": "Amicus Plato, sed magis amica veritas"
        }
      },
      {
        "entity": {
          "type": "uri",
          "value": "http://dbpedia.org/resource/List_of_ancient_Platonists"
        },
        "name": {
          "type": "literal",
          "xml:lang": "en",
          "value": "List of ancient Platonists"
        }
      },
      {
        "entity": {
          "type": "uri",
          "value": "http://dbpedia.org/resource/Denis_Platonov"
        },
        "name": {
          "type": "literal",
          "xml:lang": "en",
          "value": "Denis Platonov"
        }
      },
      {
        "entity": {
          "type": "uri",
          "value": "http://dbpedia.org/resource/Alina_Platon"
        },
        "name": { "type": "literal", "xml:lang": "en", "value": "Alina Platon" }
      },
      {
        "entity": {
          "type": "uri",
          "value": "http://dbpedia.org/resource/Ann_Plato"
        },
        "name": { "type": "literal", "xml:lang": "en", "value": "Ann Plato" }
      },
      {
        "entity": {
          "type": "uri",
          "value": "http://dbpedia.org/resource/John_Smith_(Platonist)"
        },
        "name": {
          "type": "literal",
          "xml:lang": "en",
          "value": "John Smith (Platonist)"
        }
      },
      {
        "entity": {
          "type": "uri",
          "value": "http://dbpedia.org/resource/Pavel_Platonaw"
        },
        "name": {
          "type": "literal",
          "xml:lang": "en",
          "value": "Pavel Platonaw"
        }
      },
      {
        "entity": {
          "type": "uri",
          "value": "http://dbpedia.org/resource/Republic_(Plato)"
        },
        "name": {
          "type": "literal",
          "xml:lang": "en",
          "value": "Republic (Plato)"
        }
      },
      {
        "entity": {
          "type": "uri",
          "value": "http://dbpedia.org/resource/Valentyn_Platonov"
        },
        "name": {
          "type": "literal",
          "xml:lang": "en",
          "value": "Valentyn Platonov"
        }
      },
      {
        "entity": {
          "type": "uri",
          "value": "http://dbpedia.org/resource/Veaceslav_Platon"
        },
        "name": {
          "type": "literal",
          "xml:lang": "en",
          "value": "Veaceslav Platon"
        }
      }
    ]
  }
}