Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Identities ¶
type Identities []Identity
Identities is sequence
func (*Identities) UnmarshalJSON ¶
func (seq *Identities) UnmarshalJSON(b []byte) error
UnmarshalJSON handler either Seq<Identity> or Identity parseing
type Identity ¶
type Identity struct {
ID string `json:"@id,omitempty"`
}
Identity of other graph node
"rdfs:subClassOf": { "@id": "schema:Text" }
type Schema ¶
type Schema struct { ID string `json:"@id,omitempty"` Type String `json:"@type,omitempty"` Comment String `json:"rdfs:comment,omitempty"` Label String `json:"rdfs:label,omitempty"` SubPropertyOf Identities `json:"rdfs:subPropertyOf,omitempty"` SubClassOf Identities `json:"rdfs:subClassOf,omitempty"` Domain Identities `json:"schema:domainIncludes,omitempty"` Range Identities `json:"schema:rangeIncludes,omitempty"` }
Schema specification of entity from schema.org
{ "@id": "schema:URL", "@type": "rdfs:Class", "rdfs:comment": "Data type: URL.", "rdfs:label": "URL", "rdfs:subClassOf": { "@id": "schema:Text" } }
Click to show internal directories.
Click to hide internal directories.