-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
30 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
|
||
"Unique identifiers expressible in the syntax of the IETF's URN specification." | ||
abstract type Urn end | ||
# Classes extending the URN abstractions MUST | ||
# have a member of type AbstractString named "urn": | ||
|
||
|
||
|
||
"A citable unit of any kind is identified by a URN and has a human-readable label." | ||
abstract type Citable end | ||
|
||
"""Citable content should always be serializable. | ||
""" | ||
function cex(data::T, delim="|") where {T <: Citable} | ||
@warn("No cex function defined for ", typeof(data)) | ||
end | ||
function cex end | ||
|
||
function objectid(data::T) where {T <: Citable} | ||
@warn("No cex function defined for ", typeof(data)) | ||
nothing | ||
end | ||
"""Citable content has a label. | ||
""" | ||
function label end | ||
|
||
"""Citable content is identified by a URN. | ||
""" | ||
function urn end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
using CitableBase | ||
using Test | ||
|
||
|
||
include("test_urnimpl.jl") | ||
include("test_urnmanipulation.jl") | ||
include("test_citeimpl.jl") | ||
include("test_cex.jl") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters