Specify if this is an array
this property is required for deserializing from turtle
class Person {
@RdfProperty({predicate: 'schema:hasFriend', clazz: Person, isArray: true})
friend: Person[];
}
or
class Person {
@RdfProperty({predicate: 'schema:name', isArray: true})
name: string[];
}
Treat a string as IRI Resource
language tag, i.e. 'en' or 'de' or 'ru', etc
class Person {
@RdfProperty({predicate: 'schema:name', lang: 'en'})
name: string;
}
Serializer must either extend AbstractBNodeSerializer class or implement the IRDFSerializer interface
XSDDataType can be used or a string
class Person {
@RdfProperty({predicate: 'schema:name', xsdType: XSDDataType.XSD_STRING})
name: string;
}
Generated using TypeDoc
Used to identify type of object at runtime.
MUST be used if the property extends Object i.e Person {}
class Person { @RdfProperty({predicate: 'schema:hasFriend', clazz: Person}) friend: Person; }
this property is required for instances to be created when deserializing turtle to objects