new PlaceDescription( [json])
A description of a place
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
json |
Object |
<optional> |
- See:
Extends
Methods
-
addEvidence(evidence)
-
Add evidence
Parameters:
Name Type Description evidence
Object | EvidenceReference - Inherited From:
Returns:
This instance.- Type
- Subject
-
addField(field)
-
Add a field
Parameters:
Name Type Description field
Field - Inherited From:
Returns:
this- Type
- ExtensibleData
-
addLink(link)
-
Add a link
Parameters:
Name Type Description link
Link - Inherited From:
Returns:
this- Type
- ExtensibleData
-
addMedia(media)
-
Add media
Parameters:
Name Type Description media
Object | SourceReference - Inherited From:
Returns:
This instance.- Type
- Subject
-
addName(name)
-
Add the name
Parameters:
Name Type Description name
TextValue | Object Returns:
- Type
- PlaceDescription
-
addNote(note)
-
Add a note
Parameters:
Name Type Description note
Object | Note - Inherited From:
Returns:
This instance- Type
- Conclusion
-
addSource(source)
-
Add a source
Parameters:
Name Type Description source
SourceReference - Inherited From:
Returns:
This instance- Type
- Conclusion
-
getAnalysis()
-
Get analysis.
- Inherited From:
Returns:
analysis- Type
- ResourceReference
-
getAttribution()
-
Get the attribution.
- Inherited From:
Returns:
- Type
- Attribution
-
getConfidence()
-
Get the confidence.
- Inherited From:
Returns:
confidence- Type
- String
-
getDisplay()
-
Get the display properties
Returns:
-
getEvidence()
-
Get the evidence.
- Inherited From:
Returns:
- Type
- Array.<EvidenceReference>
-
getFields()
-
Get the fields
- Inherited From:
Returns:
- Type
- Array.<Field>
-
getId()
-
Get the object's id.
- Inherited From:
Returns:
Id- Type
- String
-
getIdentifiers()
-
Get the identifiers
- Inherited From:
Returns:
- Type
- Identifiers
-
getJurisdiction()
-
Get the jurisdiction
Returns:
- Type
- ResourceReference
-
getLang()
-
Get the language identifier.
- Inherited From:
Returns:
lang- Type
- String
-
getLatitude()
-
Get the latitude
Returns:
- Type
- Number
-
getLink(rel)
-
Get a link
Parameters:
Name Type Description rel
String - Inherited From:
Returns:
- Type
- Link
-
getLinks()
-
Get the links
- Inherited From:
Returns:
- Type
- Array.<Link>
-
getLongitude()
-
Get the longitude
Returns:
- Type
- Number
-
getMedia()
-
Get the media references
- Inherited From:
Returns:
- Type
- Array.<SourceReference>
-
getNames()
-
Get the names
Returns:
- Type
- Array.<TextValue>
-
getNotes()
-
Get the notes
- Inherited From:
Returns:
notes- Type
- Array.<Note>
-
getPlace()
-
Get the place
Returns:
- Type
- ResourceReference
-
getSortKey()
-
Get the sortKey
- Inherited From:
Returns:
sortKey- Type
- Boolean
-
getSources()
-
Get the sources
- Inherited From:
Returns:
- Type
- Array.<SourceReference>
-
getSpatialDescription()
-
Get the spatial description
Returns:
- Type
- ResourceReference
-
getTemporalDescription()
-
Get the temporal description
Returns:
- Type
- Date
-
getType()
-
Get the type
Returns:
- Type
- String
-
init(json)
-
Initialize from JSON
Parameters:
Name Type Description json
Object - Overrides:
Returns:
this- Type
- PlaceDescription
-
isExtracted()
-
Is this an extracted conclusion?
- Inherited From:
Returns:
extracted- Type
- Boolean
-
<static> isInstance(obj)
-
Check whether the given object is an instance of this class.
Parameters:
Name Type Description obj
Object Returns:
- Type
- Boolean
-
setAnalysis(analysis)
-
Set the analysis
Parameters:
Name Type Description analysis
Object | ResourceReference - Inherited From:
Returns:
This instance- Type
- Conclusion
-
setAttribution(attribution)
-
Set the attribution
Parameters:
Name Type Description attribution
Object | Attribution - Inherited From:
Returns:
This instance- Type
- Conclusion
-
setConfidence(confidence)
-
Set the confidence.
Parameters:
Name Type Description confidence
String - Inherited From:
Returns:
This instance- Type
- Conclusion
-
setDisplay(display)
-
Set the display properties
Parameters:
Name Type Description display
PlaceDisplayProperties Returns:
this- Type
- PlaceDescription
-
setEvidence(evidence)
-
Set the evidence. This method will replace existing evidence entries with new entries.
Parameters:
Name Type Description evidence
Array.<Object> | Array.<EvidenceReference> - Inherited From:
Returns:
This instance.- Type
- Subject
-
setExtracted(extracted)
-
Set the extracted property
Parameters:
Name Type Description extracted
Boolean - Inherited From:
Returns:
This instance.- Type
- Subject
-
setFields(fields)
-
Set the fields
Parameters:
Name Type Description fields
Array.<Field> - Inherited From:
Returns:
this- Type
- ExtensibleData
-
setId(id)
-
Set the object's id.
Parameters:
Name Type Description id
String - Inherited From:
Returns:
This object, for chaining.- Type
- ExtensibleData
-
setIdentifiers(identifiers)
-
Set the identifiers
Parameters:
Name Type Description identifiers
Object | Identifiers - Inherited From:
Returns:
This instance- Type
- Subject
-
setJurisdiction(jurisdiction)
-
Set the jurisdiction
Parameters:
Name Type Description jurisdiction
ResourceReference Returns:
- Type
- PlaceDescription
-
setLang(lang)
-
Set the language identifier.
Parameters:
Name Type Description lang
String - Inherited From:
Returns:
This instance.- Type
- Conclusion
-
setLatitude(latitude)
-
Set the latutide
Parameters:
Name Type Description latitude
Number Returns:
- Type
- PlaceDescription
-
setLinks(links)
-
Set the links
Parameters:
Name Type Description links
Links - Inherited From:
Returns:
this- Type
- ExtensibleData
-
setLongitude(longitude)
-
Set the latutide
Parameters:
Name Type Description longitude
Number Returns:
- Type
- PlaceDescription
-
setMedia(media)
-
Set the media references
Parameters:
Name Type Description media
Array.<Object> | Array.<SourceReference> - Inherited From:
-
setNames(names)
-
Set the names
Parameters:
Name Type Description names
Array.<TextValue> | Array.<Object> Returns:
- Type
- PlaceDescription
-
setNotes(notes)
-
Set the notes
Parameters:
Name Type Description notes
Array.<Object> | Array.<Note> - Inherited From:
Returns:
This instance- Type
- Conclusion
-
setPlace(place)
-
Set the place
Parameters:
Name Type Description place
ResourceReference Returns:
- Type
- PlaceDescription
-
setSortKey(sortKey)
-
Set the sortKey
Parameters:
Name Type Description sortKey
Boolean - Inherited From:
Returns:
this- Type
- Conclusion
-
setSources(sources)
-
Set the sources
Parameters:
Name Type Description sources
Array.<Object> | Array.<SourceReference> - Inherited From:
Returns:
This instance- Type
- Conclusion
-
setSpatialDescription(spatial)
-
Set the spatial description
Parameters:
Name Type Description spatial
ResourceReference Returns:
- Type
- PlaceDescription
-
setTemporalDescription(date)
-
Set the temporal description
Parameters:
Name Type Description date
Date Returns:
- Type
- PlaceDescription
-
setType(type)
-
Set the type
Parameters:
Name Type Description type
String Returns:
- Type
- PlaceDescription
-
toJSON()
-
Export the object as JSON
- Overrides:
Returns:
JSON object- Type
- Object