-
Notifications
You must be signed in to change notification settings - Fork 576
Open
Description
Clearly this dilemma is known to the maintainers, but I don't think there is any issue about it yet:
Lines 324 to 328 in 53405b7
# RDFLib official stance is Subject can be a Literal | |
# If this ever changes, this part will be one of the first lines to modify. | |
_SubjectType: te.TypeAlias = Union[IdentifiedNode, Literal, Variable] | |
_PredicateType: te.TypeAlias = Union[IdentifiedNode, Variable] | |
_ObjectType: te.TypeAlias = Union[IdentifiedNode, Literal, Variable] |
This is fairly frustrating to work with, as I need to do lots of subclass checking whenever I work with subject triples.
Here is the relevant part of the RDF spec:
An RDF triple consists of three components:
• the subject, which is an IRI or a blank node
• the predicate, which is an IRI
• the object, which is an IRI, a literal or a blank node
piotr-smolira
Metadata
Metadata
Assignees
Labels
No labels