CitableObject.CitableByCite2Urn
— TypeA value of CitableBase.CitableTrait
that can be used for content citable by CtsUrn
.
CitableObject.Cite2Urn
— TypeImplementation of the Cite Object URN. See http://cite-architecture.org/cite2urn/.
CitableObject.Cite2UrnComparable
— TypeValue for URN comparison trait on CtsUrn
DocStringExtensions
Base.show
— MethodOverride Base.show
for Cite2Urn
.
show(io, urn)
CitableBase.addversion
— MethodCreate a new Cite2Urn by setting the version part of a given Cite2Urn to a given value.
addversion(u, versid)
CitableBase.dropversion
— MethodCreate a new Cite2Urn by dropping the version part of a given Cite2Urn.
dropversion(u)
CitableBase.supportssubref
— MethodCite2Urn
s support subreferences.
supportssubref(u)
CitableBase.supportsversion
— MethodCite2Urn
s support version ids.
supportsversion(u)
CitableBase.urncomparisontrait
— MethodDefine UrnComparisonTrait
for Cite2Urn
.
urncomparisontrait(Cite2Urn)
CitableBase.urncomparisontrait
— MethodCtsUrn
s are URN comparable.
urncomparisontrait(_)
CitableBase.urncontains
— Methodurncontains(u1, u2)
True if urn1
contains or is equal to urn2
accroding to URN logic.
```
CitableBase.urnequals
— Methodurnequals(urn1, urn2)
Override urnequals
function for Cite2Urn
s.
CitableBase.urnsimilar
— Methodurnsimilar(urn1, urn2)
Override similar
function to be true if urn1
and urn1
are similar by URN logic.
CitableBase.versionid
— Methodversionid(u)
Extract CITE2 collection identifer from a Cite2Urn.
Examples
julia>
urn = Cite2Urn("urn:cite2:hmt:msA.v1:12r")
collectionid(urn)
CitableObject.addobject
— MethodCreate a new Cite2Urn by setting the object identifier of a given Cite2Urn to a given value.
addobject(u, objid)
CitableObject.addproperty
— MethodCreate a new Cite2Urn by setting the version part of a given Cite2Urn to a given value.
addproperty(u, propid)
CitableObject.collectioncomponent
— Methodcollectioncomponent(u)
Extract CITE2 work component from a CtsUrn.
Examples
julia>
collectioncomponent(Cite2Urn("urn:cite2:hmt:msA.v1:12r"))
CitableObject.collectioncontains
— Methodcollectioncontains(u1, u2)
True if collection component of urn1
contains or is equal to collection component of urn2
.
```
CitableObject.collectionid
— Methodcollectionid(u)
Extract CITE2 collection identifer from a Cite2Urn.
Examples
julia>
urn = Cite2Urn("urn:cite2:hmt:msA.v1:12r")
collectionid(urn)
CitableObject.collectionparts
— Methodcollectionparts(u)
Extract parts ofr CITE2 object component from a CtsUrn.
CitableObject.dropobject
— MethodCreate a new Cite2Urn by dropping the object identifier of a given Cite2Urn to a given value.
dropobject(u)
CitableObject.dropproperty
— MethodCreate a new Cite2Urn by dropping the version part of a given Cite2Urn.
dropproperty(u)
CitableObject.namespace
— Methodnamespace(u)
Extract CITE2 namespace from a CtsUrn.
Examples
julia>
namespace(Cite2Urn("urn:cite2:hmt:msA.v1:12r"))
CitableObject.objectcomponent
— Methodobjectcomponent(u)
Extract CITE2 object component from a CtsUrn.
Examples
julia>
objectcomponent(Cite2Urn("urn:cite2:hmt:msA.v1:12r"))
CitableObject.propertyid
— Methodpropertyid(u)
Extract CITE2 property identifer from a Cite2Urn.
CitableObject.validurn
— MethodTrue if s is a valid Cite2Urn.
CitableObject.CexUtils.cataloglabel
— MethodFind catalog label, if any, in CEX file filesrc
contained by u
.
cataloglabel(filesrc, u, freader)
CitableObject.CexUtils.cataloglabel
— MethodFind catalog label, if any, in CEX at URL url
contained by u
.
cataloglabel(s, u, sreader)
CitableObject.CexUtils.cataloglabel
— MethodFind catalog label, if any, in CEX at URL url
contained by u
.
cataloglabel(url, u, freader)
CitableObject.CexUtils.cataloglabel
— MethodFind catalog label, if any, for u
in CEX source s
. If no catalog found, compose machine-generated label.
cataloglabel(s, u; delimiter)
CitableObject.CexUtils.cataloglabel
— MethodFind catalog label, if any, for u
in CEX source s
. If no catalog found, compose machine-generated label.
cataloglabel(blks, u; delimiter)
CitableObject.CexUtils.cataloglabel
— MethodDispatch properties
on T
.
cataloglabel(cexsrc, u, reader)
CitableObject.CexUtils.citeid
— MethodFind a urn/label pair for a collection or relation set identified by u
.
citeid(s, u)
Results are a NamedTuple
with keys :urn
and :label
.
CitableObject.CexUtils.citeid
— MethodFind a urn/label pair for a collection or relation set identified by u
.
citeid(blks, u)
Results are a NamedTuple
with keys :urn
and :label
.
CitableObject.CexUtils.citeids
— MethodFind urn/label pairs for all collections or relation sets in file filesrc
implementing model
.
citeids(filesrc, model, freader)
CitableObject.CexUtils.citeids
— MethodFind urn/label pairs for all collections or relation sets in s
implementing model
.
citeids(s, model, freader)
CitableObject.CexUtils.citeids
— MethodFind urn/label pairs for all collections or relation sets at URL url
implementing model
.
citeids(url, model, freader)
CitableObject.CexUtils.citeids
— MethodFind urn/label pairs for all collections or relation sets in s
implementing model
.
citeids(s, model)
Results are a NamedTuple
with keys :urn
and :label
.
CitableObject.CexUtils.citeids
— MethodFind urn/label pairs for all collections or relation sets in blks
implementing model
.
citeids(blks, model)
Results are a NamedTuple
with keys :urn
and :label
.
CitableObject.CexUtils.citeids
— MethodDispatch citeids
on T
.
citeids(cexsrc, model, reader)
CitableObject.CexUtils.collectionblock
— MethodFind a single block of CITE collection data matching u
collectionblock(s, u; delimiter)
CitableObject.CexUtils.collectionblock
— MethodFind a single block of CITE collection data matching u
collectionblock(blks, u; delimiter)
CitableObject.CexUtils.collectiondata
— MethodFind all data lines in CEX file filesrc
contained by u
.
collectiondata(filesrc, u, freader; delimiter)
CitableObject.CexUtils.collectiondata
— MethodFind all datalines in CEX s
contained by u
.
collectiondata(s, u, sreader; delimiter)
CitableObject.CexUtils.collectiondata
— MethodFind all data lines in CEX at URL url
contained by u
.
collectiondata(url, u, ureader; delimiter)
CitableObject.CexUtils.collectiondata
— MethodFind all data lines in the CEX string s
contained by u
.
collectiondata(s, u; delimiter)
CitableObject.CexUtils.collectiondata
— MethodFind all data lines in blks
contained by
u`.
collectiondata(blks, u; delimiter)
CitableObject.CexUtils.collectiondata
— MethodDispatch collectiondata
on T
.
collectiondata(cexsrc, u, reader; delimiter)
CitableObject.CexUtils.columndict
— MethodMap column labels to column numbers
columndict(b; delimiter)
CitableObject.CexUtils.columnindex
— MethodCompute index of headers to columns in citedata
block blk
.
columnindex(blk; delimiter)
CitableObject.CexUtils.data_for_model
— MethodFind all data lines in file filesrc
for collections implementing datamodel
.
data_for_model(filesrc, datamodel, freader; delimiter)
CitableObject.CexUtils.data_for_model
— MethodFind all data lines in s
implementing datamodel
.
data_for_model(s, datamodel, freader; delimiter)
CitableObject.CexUtils.data_for_model
— MethodFind all data lines in content of url
implementing datamodel
.
data_for_model(url, datamodel, freader; delimiter)
CitableObject.CexUtils.data_for_model
— MethodFind all data lines in the CEX string s
for collections implementing datamodel
.
data_for_model(s, datamodel; delimiter)
CitableObject.CexUtils.data_for_model
— MethodFind all data lines in blks
for collections implementing datamodel
.
data_for_model(blks, datamodel; delimiter)
CitableObject.CexUtils.data_for_model
— MethodDispatch data_for_model
on T
.
data_for_model(cexsrc, datamodel, reader; delimiter)
CitableObject.CexUtils.implementations
— MethodFind Cite2Urn
s for all collections in CEX file filesrc
implementing datamodel
.
implementations(filesrc, datamodel, freader; delimiter)
CitableObject.CexUtils.implementations
— MethodFind Cite2Urn
s for all collections in CEX file filesrc
implementing datamodel
.
implementations(s, datamodel, freader; delimiter)
CitableObject.CexUtils.implementations
— MethodFind Cite2Urn
s for all collections in CEX file filesrc
implementing datamodel
.
implementations(url, datamodel, freader; delimiter)
CitableObject.CexUtils.implementations
— MethodFind Cite2Urn
s for all collections in s
implementing datamodel
.
implementations(s, datamodel; delimiter)
CitableObject.CexUtils.implementations
— MethodFind Cite2Urn
s for all collections in blks
implementing datamodel
.
implementations(blks, datamodel; delimiter)
CitableObject.CexUtils.implementations
— MethodDispatch implementations
on T
.
implementations(cexsrc, datamodel, reader; delimiter)
CitableObject.CexUtils.matchingproperties
— MethodFrom a list of string values, extract those where the first delimited column matches u
by URN containment.
matchingproperties(lines, u)
Since property definitions must be specific to a version, we can use string comparison rather than the more expensive urncontains
to filter these values.
CitableObject.CexUtils.properties
— MethodFind all property definitions in CEX file filesrc
contained by u
.
properties(filesrc, u, freader)
CitableObject.CexUtils.properties
— MethodFind all property definitions in CEX at URL url
contained by u
.
properties(s, u, sreader)
CitableObject.CexUtils.properties
— MethodFind all property definitions in CEX at URL url
contained by u
.
properties(url, u, ureader)
CitableObject.CexUtils.properties
— MethodFind all property definitions in the CEX string s
contained by u
.
properties(s, u)
CitableObject.CexUtils.properties
— MethodFind all property definitions in blks
contained by u
.
properties(blks, u)
CitableObject.CexUtils.properties
— MethodDispatch properties
on T
.
properties(cexsrc, u, reader)
CitableObject.CexUtils.relations
— MethodFind relations data for all relation sets in CEX file filesrc
contained by u
.
relations(filesrc, u, freader)
CitableObject.CexUtils.relations
— MethodFind relations data for all relation sets in s
contained by u
.
relations(s, u, freader)
CitableObject.CexUtils.relations
— MethodFind relations data for all relation sets from CEX at URL url
contained by u
.
relations(url, u, freader)
CitableObject.CexUtils.relations
— MethodFind relations data for all relation sets in s
contained by u
.
relations(s, u)
CitableObject.CexUtils.relations
— MethodFind relations data for all relation sets in blks
contained by u
.
relations(blks, u)
CitableObject.CexUtils.relations
— MethodDispatch relations
on T
.
relations(cexsrc, u, reader)
CitableObject.CexUtils.relations_for_model
— MethodFind relations data for all relation sets in CEX file filesrc
implementing data model dm
.
relations_for_model(filesrc, dm, freader)
CitableObject.CexUtils.relations_for_model
— MethodFind relations data for all relation sets in s
implementing data model dm
.
relations_for_model(s, dm, freader)
CitableObject.CexUtils.relations_for_model
— MethodFind relations data for all relation sets from CEX at URL url
implementing data model dm
.
relations_for_model(url, dm, freader)
CitableObject.CexUtils.relations_for_model
— MethodFind relations data for all relation sets in s
implementing data model dm
.
relations_for_model(s, dm)
CitableObject.CexUtils.relations_for_model
— MethodFind relations data for all relation sets in blks
implementing data model dm
.
relations_for_model(blks, dm)
CitableObject.CexUtils.relations_for_model
— MethodDispatch relations
on T
.
relations_for_model(cexsrc, dm, reader)
CitableObject.CexUtils.relationsetlabel
— MethodFind label for single relation set uniquely identifed by u
in CEX source s
.
relationsetlabel(filesrc, u, freader)
CitableObject.CexUtils.relationsetlabel
— MethodFind label for single relation set uniquely identifed by u
.
relationsetlabel(s, u, sreader)
CitableObject.CexUtils.relationsetlabel
— MethodFind label for single relation set uniquely identifed by u
at URL url
.
relationsetlabel(url, u, freader)
CitableObject.CexUtils.relationsetlabel
— MethodFind label for single relation set uniquely identifed by u
in CEX source s
. If no catalog found, compose machine-generated label.
relationsetlabel(s, u; delimiter)
CitableObject.CexUtils.relationsetlabel
— MethodFind label for single relation set uniquely identifed by u
in CEX source s
.
relationsetlabel(blks, u; delimiter)
CitableObject.CexUtils.relationsetlabel
— MethodDispatch relationsetlabel
on T
.
relationsetlabel(cexsrc, u, reader)
CitableObject.CexUtils.relationsmatch
— MethodTrue if the relation set in blk
is contained by u
.
relationsmatch(blk, u)
CitableObject.CexUtils.urnpeek
— MethodPeek at URN value for first data row in a citedata
block.
urnpeek(datablock; delimiter)