OpenHPS/openhps-rdf

View on GitHub
src/models/Address.ts

Summary

Maintainability
A
3 hrs
Test Coverage
import { SerializableMember, SerializableObject } from '@openhps/core';
import { vcard } from '../vocab';

@SerializableObject({
    rdf: {
        type: vcard.Address,
    },
})
export class Address {
    @SerializableMember({
        rdf: {
            predicate: vcard.street_address,
        },
    })
    street?: string;

    @SerializableMember({
        rdf: {
            predicate: vcard.country_name,
        },
    })
    country?: string;
}