Skip to content

Commit 3041a9b

Browse files
author
Tyson Chen
committed
Break change. adding new cap/skill .
1 parent 3e5e106 commit 3041a9b

File tree

37 files changed

+663
-1221
lines changed

37 files changed

+663
-1221
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.env
2+
result

flake.lock

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 21 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,33 @@
11
{
2-
description = "An empty flake template that you can adapt to your own environment";
2+
description = "A flake for building the Agent Semantic Communication Ontology";
33

4-
# Flake inputs
5-
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0"; # Stable Nixpkgs (use 0.1 for unstable)
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
};
67

7-
# Flake outputs
8-
outputs =
9-
{ self, ... }@inputs:
8+
outputs = { self, nixpkgs }:
109
let
11-
# The systems supported for this flake's outputs
12-
supportedSystems = [
13-
"x86_64-linux" # 64-bit Intel/AMD Linux
14-
"aarch64-linux" # 64-bit ARM Linux
15-
"x86_64-darwin" # 64-bit Intel macOS
16-
"aarch64-darwin" # 64-bit ARM macOS
17-
];
18-
19-
# Helper for providing system-specific attributes
20-
forEachSupportedSystem =
21-
f:
22-
inputs.nixpkgs.lib.genAttrs supportedSystems (
23-
system:
24-
f {
25-
inherit system;
26-
# Provides a system-specific, configured Nixpkgs
27-
pkgs = import inputs.nixpkgs {
28-
inherit system;
29-
# Enable using unfree packages
30-
config.allowUnfree = true;
31-
};
32-
}
33-
);
34-
35-
pythonWithPackages = forEachSupportedSystem (
36-
{ pkgs, ... }:
37-
pkgs.python3.withPackages (ps: with pkgs.python3Packages; [
38-
openai
39-
python-dotenv
40-
rich
41-
])
42-
);
10+
supportedSystems = [ "x86_64-linux" "aarch64-darwin" ];
11+
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
4312
in
4413
{
45-
# Development environments output by this flake
46-
47-
# To activate the default environment:
48-
# nix develop
49-
# Or if you use direnv:
50-
# direnv allow
51-
devShells = forEachSupportedSystem (
52-
{ pkgs, system }:
14+
packages = forAllSystems (system:
15+
let
16+
pkgs = nixpkgs.legacyPackages.${system};
17+
in
5318
{
54-
# Run `nix develop` to activate this environment or `direnv allow` if you have direnv installed
55-
default = pkgs.mkShellNoCC {
56-
# The Nix packages provided in the environment
57-
packages = with pkgs; [
58-
# Add the flake's formatter to your project's environment
59-
self.formatter.${system}
60-
61-
# Python environment with dependencies
62-
pythonWithPackages.${system}
63-
];
64-
65-
# Set any environment variables for your development environment
66-
env = { };
67-
68-
# Add any shell logic you want executed when the environment is activated
69-
shellHook = "";
19+
default = pkgs.stdenv.mkDerivation {
20+
name = "agent-semantic-communication-ontology";
21+
src = self;
22+
buildPhase = ''
23+
find ontologies -name "*.ttl" ! -path "ontologies/examples/*" -exec cat {} + > agent-semantic-communication.ttl
24+
'';
25+
installPhase = ''
26+
mkdir -p $out
27+
cp agent-semantic-communication.ttl $out/
28+
'';
7029
};
7130
}
7231
);
73-
74-
# Nix formatter
75-
76-
# This applies the formatter that follows RFC 166, which defines a standard format:
77-
# https://github.com/NixOS/rfcs/pull/166
78-
79-
# To format all Nix files:
80-
# git ls-files -z '*.nix' | xargs -0 -r nix fmt
81-
# To check formatting:
82-
# git ls-files -z '*.nix' | xargs -0 -r nix develop --command nixfmt --check
83-
formatter = forEachSupportedSystem ({ pkgs, ... }: pkgs.nixfmt-rfc-style);
8432
};
8533
}

ontologies/agent.jsonld

Lines changed: 3 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
11
[
2-
{
3-
"@id": "https://ns.slashlife.ai/agent/agent#CapabilityBundle",
4-
"@type": [
5-
"http://www.w3.org/2002/07/owl#Class"
6-
],
7-
"http://www.w3.org/2000/01/rdf-schema#comment": [
8-
{
9-
"@value": "Declared capabilities and skills for an Agent."
10-
}
11-
],
12-
"http://www.w3.org/2000/01/rdf-schema#label": [
13-
{
14-
"@value": "CapabilityBundle"
15-
}
16-
]
17-
},
182
{
193
"@id": "https://ns.slashlife.ai/agent/lifecycle#LifecycleRecord",
204
"@type": [
@@ -125,7 +109,7 @@
125109
"http://purl.org/dc/terms/modified": [
126110
{
127111
"@type": "http://www.w3.org/2001/XMLSchema#date",
128-
"@value": "2025-11-10"
112+
"@value": "2025-11-13"
129113
}
130114
],
131115
"http://purl.org/dc/terms/title": [
@@ -143,7 +127,7 @@
143127
],
144128
"http://www.w3.org/2002/07/owl#versionInfo": [
145129
{
146-
"@value": "0.2.0"
130+
"@value": "0.3.0"
147131
}
148132
]
149133
},
@@ -500,22 +484,6 @@
500484
}
501485
]
502486
},
503-
{
504-
"@id": "https://ns.slashlife.ai/agent/agent#skill",
505-
"@type": [
506-
"http://www.w3.org/2002/07/owl#DatatypeProperty"
507-
],
508-
"http://www.w3.org/2000/01/rdf-schema#domain": [
509-
{
510-
"@id": "https://ns.slashlife.ai/agent/agent#CapabilityBundle"
511-
}
512-
],
513-
"http://www.w3.org/2000/01/rdf-schema#range": [
514-
{
515-
"@id": "http://www.w3.org/2001/XMLSchema#string"
516-
}
517-
]
518-
},
519487
{
520488
"@id": "https://ns.slashlife.ai/agent/agent#interface",
521489
"@type": [
@@ -718,21 +686,4 @@
718686
"@value": "OutputSpec"
719687
}
720688
]
721-
},
722-
{
723-
"@id": "https://ns.slashlife.ai/agent/agent#capabilities",
724-
"@type": [
725-
"http://www.w3.org/2002/07/owl#ObjectProperty"
726-
],
727-
"http://www.w3.org/2000/01/rdf-schema#domain": [
728-
{
729-
"@id": "https://ns.slashlife.ai/agent/core#Agent"
730-
}
731-
],
732-
"http://www.w3.org/2000/01/rdf-schema#range": [
733-
{
734-
"@id": "https://ns.slashlife.ai/agent/agent#CapabilityBundle"
735-
}
736-
]
737-
}
738-
]
689+
},

ontologies/agent.ttl

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
a owl:Ontology ;
2424
dct:title "Agent Ontology" ;
2525
dct:description "Defines the structure and properties of an AI Agent, including its identity, purpose, capabilities, and operational aspects." ;
26-
dct:modified "2025-11-10"^^xsd:date ;
27-
owl:versionInfo "0.2.0" ;
26+
dct:modified "2025-11-13"^^xsd:date ;
27+
owl:versionInfo "0.3.0" ;
2828
owl:imports <https://ns.slashlife.ai/agent/core> ;
2929
owl:imports <https://ns.slashlife.ai/agent/identity> .
3030

@@ -64,21 +64,7 @@
6464
rdfs:label "owner" .
6565

6666

67-
#################################################################
68-
# Capability Model (linked to capability ontology)
69-
#################################################################
70-
71-
:CapabilityBundle a owl:Class ;
72-
rdfs:label "CapabilityBundle" ;
73-
rdfs:comment "Declared capabilities and skills for an Agent." .
7467

75-
:capabilities a owl:ObjectProperty ;
76-
rdfs:domain core:Agent ;
77-
rdfs:range :CapabilityBundle .
78-
79-
:skill a owl:DatatypeProperty ;
80-
rdfs:domain :CapabilityBundle ;
81-
rdfs:range xsd:string .
8268

8369

8470
#################################################################

0 commit comments

Comments
 (0)