@twin.org/standards-foaf 0.0.3-next.50 → 0.0.3-next.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/docs/changelog.md +7 -0
- package/docs/examples.md +21 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TWIN Standards FOAF
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package provides data models for the [FOAF vocabulary](https://xmlns.com/foaf/spec/), supporting interoperable descriptions of people, organisations, and social relationships.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.51](https://github.com/twinfoundation/standards/compare/standards-foaf-v0.0.3-next.50...standards-foaf-v0.0.3-next.51) (2026-03-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **standards-foaf:** Synchronize repo versions
|
|
9
|
+
|
|
3
10
|
## [0.0.3-next.50](https://github.com/twinfoundation/standards/compare/standards-foaf-v0.0.3-next.49...standards-foaf-v0.0.3-next.50) (2026-03-09)
|
|
4
11
|
|
|
5
12
|
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Standards FOAF Examples
|
|
2
|
+
|
|
3
|
+
These snippets demonstrate registering schema support and defining person records with common FOAF terms.
|
|
4
|
+
|
|
5
|
+
## FoafDataTypes
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { FoafContexts, FoafDataTypes, FoafTypes, type IFoafPerson } from '@twin.org/standards-foaf';
|
|
9
|
+
|
|
10
|
+
FoafDataTypes.registerRedirects();
|
|
11
|
+
FoafDataTypes.registerTypes();
|
|
12
|
+
|
|
13
|
+
const person: IFoafPerson = {
|
|
14
|
+
'@context': FoafContexts.Context,
|
|
15
|
+
type: FoafTypes.Person,
|
|
16
|
+
name: 'Alex Example',
|
|
17
|
+
mbox: 'mailto:alex@example.org'
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
console.log(person.type); // Person
|
|
21
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-foaf",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3-next.51",
|
|
4
|
+
"description": "Data models for the FOAF vocabulary.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/twinfoundation/standards.git",
|