1- import { TermMappings , ValueMappings , TermWrapper } from "rdfjs-wrapper"
1+ import { TermMapping , ValueMapping , TermWrapper } from "rdfjs-wrapper"
22import { FOAF , PIM , SOLID , VCARD } from "../vocabulary/mod.js"
33
44export class Agent extends TermWrapper {
55 get vcardFn ( ) : string | undefined {
6- return this . singularNullable ( VCARD . fn , ValueMappings . literalToString )
6+ return this . singularNullable ( VCARD . fn , ValueMapping . literalToString )
77 }
88
99 get vcardHasUrl ( ) : string | undefined {
10- return this . singularNullable ( VCARD . hasUrl , ValueMappings . iriToString )
10+ return this . singularNullable ( VCARD . hasUrl , ValueMapping . iriToString )
1111 }
1212
1313 get organization ( ) : string | null {
14- return this . singularNullable ( VCARD . organizationName , ValueMappings . iriToString ) ?? null
14+ return this . singularNullable ( VCARD . organizationName , ValueMapping . iriToString ) ?? null
1515 }
1616
1717 get role ( ) : string | null {
18- return this . singularNullable ( VCARD . role , ValueMappings . iriToString ) ?? null
18+ return this . singularNullable ( VCARD . role , ValueMapping . iriToString ) ?? null
1919 }
2020
2121 get title ( ) : string | null {
22- return this . singularNullable ( VCARD . title , ValueMappings . literalToString ) ?? null
22+ return this . singularNullable ( VCARD . title , ValueMapping . literalToString ) ?? null
2323 }
2424
2525 get phone ( ) : string | null {
@@ -31,7 +31,7 @@ export class Agent extends TermWrapper {
3131 }
3232
3333 get foafName ( ) : string | undefined {
34- return this . singularNullable ( FOAF . name , ValueMappings . literalToString )
34+ return this . singularNullable ( FOAF . name , ValueMapping . literalToString )
3535 }
3636
3737 get name ( ) : string | null {
@@ -44,23 +44,23 @@ export class Agent extends TermWrapper {
4444 }
4545
4646 get foafHomepage ( ) : string | undefined {
47- return this . singularNullable ( FOAF . homepage , ValueMappings . literalToString )
47+ return this . singularNullable ( FOAF . homepage , ValueMapping . literalToString )
4848 }
4949
5050 get website ( ) : string | null {
5151 return this . vcardHasUrl ?? this . foafHomepage ?? null
5252 }
5353
5454 get photoUrl ( ) : string | null {
55- return this . singularNullable ( VCARD . hasPhoto , ValueMappings . literalToString ) ?? null
55+ return this . singularNullable ( VCARD . hasPhoto , ValueMapping . literalToString ) ?? null
5656 }
5757
5858 get pimStorage ( ) : Set < string > {
59- return this . objects ( PIM . storage , ValueMappings . iriToString , TermMappings . stringToIri )
59+ return this . objects ( PIM . storage , ValueMapping . iriToString , TermMapping . stringToIri )
6060 }
6161
6262 get solidStorage ( ) : Set < string > {
63- return this . objects ( SOLID . storage , ValueMappings . iriToString , TermMappings . stringToIri )
63+ return this . objects ( SOLID . storage , ValueMapping . iriToString , TermMapping . stringToIri )
6464 }
6565
6666 get email ( ) : string | null {
@@ -72,7 +72,7 @@ export class Agent extends TermWrapper {
7272 }
7373
7474 get knows ( ) : Set < string > {
75- return this . objects ( FOAF . knows , ValueMappings . iriToString , TermMappings . stringToIri )
75+ return this . objects ( FOAF . knows , ValueMapping . iriToString , TermMapping . stringToIri )
7676 }
7777}
7878
@@ -82,6 +82,6 @@ class HasValue extends TermWrapper {
8282 }
8383
8484 get hasValue ( ) : string | undefined {
85- return this . singularNullable ( VCARD . hasValue , ValueMappings . iriToString )
85+ return this . singularNullable ( VCARD . hasValue , ValueMapping . iriToString )
8686 }
8787}
0 commit comments