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 🙏

© 2024 – Pkg Stats / Ryan Hefner

nagu-owl

v1.11.12

Published

[![Node.js CI](https://github.com/nagucc/owl/actions/workflows/node.js.yml/badge.svg)](https://github.com/nagucc/owl/actions/workflows/node.js.yml)

Downloads

66

Readme

Nagu OWL

Nagu OWL是一个本体论框架,实现了RDF、RDFS、OWL的定义、推理,并基于Nagu Triples实现数据存储。

公理、定义及推理

公理(代码中硬编码)

  1. RDF中定义的任何资源都可以作为主体或客体使用,只有rdf:Property的实例才能作为三元组的谓词使用;
  2. RDF中定义所有资源都是rdfs:Resource的一个实例;
  3. rdf:typerdf:Property 的一个实例,即 <rdf:type, rdf:type, rdf:Property>rdf:type的定义域是rdfs:Resource, 值域是 rdfs:Class;

定义

  1. rdf:type是一个属性:<rdf:type, rdf:type, rdf:Property>;
  2. 基本Class定义
  • <rdfs:Class, rdf:type, rdfs:Resource>
  • <rdfs:Class, rdf:type, rdfs:Class>
  • <rdf:Property, rdf:type, rdfs:Class>
  • <rdfs:Resource, rdf:type, rdfs:Class>
  • <rdf:Statement, rdf:type, rdfs:Class>
  • <rdfs:Container, rdf:type, rdfs:Class>
  • <rdf:Bag, rdf:type, rdfs:Class>
  • <rdf:Seq, rdf:type, rdfs:Class>
  • <rdf:Alt, rdf:type, rdfs:Class>
  • <rdfs:Literal, rdf:type, rdfs:Class>
  1. 基本属性定义
  • <rdfs:label, rdf:type, rdf:Property>
  • <rdfs:comment, rdf:type, rdf:Property>
  • <rdfs:domain, rdf:type, rdf:Property>
  • <rdfs:range, rdf:type, rdf:Property>
  • <rdf:subject, rdf:type, rdf:Property>
  • <rdf:predicate, rdf:type, rdf:Property>
  • <rdf:object, rdf:type, rdf:Property>
  • <rdf:first, rdf:type, rdf:Property>
  • <rdf:rest, rdf:type, rdf:Property>
  • <rdf:value, rdf:type, rdf:Property>
  • <rdf:nil, rdf:type, rdf:List>
  • <rdfs:member, rdf:type, rdf:Property>
  • <rdfs:subClassOf, rdf:type, rdf:Property>
  • <rdfs:subPropertyOf, rdf:type, rdf:Property>
  1. 定义域与值域
  • 属性的默认定义域和值域为rdf:Resource
  • rdfs:domain用于定义定义域,满足约束:
    • <rdfs:domain, rdfs:domain, rdf:Property>
  • rdfs:range 用于定义值域, 满足约束:
    • <rdfs:range, rdfs:domain, rdf:Property>
  1. 类与子类
  • 定义域:<rdfs:subClassOf, rdfs:domain rdfs:Class>
  • 值域:<rdfs:subClassOf, rdfs:range rdfs:Class>
  • 性质:当<ex:B, rdfs:subClassOf, ex:A>时,如果<ex:b, rdf:type, ex:B>,则<ex:b, rdf:type, ex:A>;
  • 传递性:如果<ex:C, rdfs:subClassOf, ex:B><ex:B, rdfs:subClassOf, ex:A>,则<ex:C, rdfs:subClassOf, ex:A>;