qna_to_tlm {rock} | R Documentation |
Convert a QNA network to Linear Topic Map format
Description
The Linear Topic Map format, LTM (https://ontopia.net/download/ltm.html), allows specification of networks in a human-readable format.
Usage
qna_to_tlm(
x,
topicmapId = "rock_qna_topicmap",
topicmapTitle = "A ROCK QNA Topic Map"
)
Arguments
x |
The parsed source object (as produced by |
topicmapId , topicmapTitle |
The topic map's identifier and title. |
Value
If x
is a single parsed source: a character vector holding the
Linear Topic Map specification; or, if multiple network coding schemes were
used in parallel, each in a list. If x
contains multiple parseds sources,
a list of such objects (i.e., a list of vectors, or a list of lists of
vectors).
Examples
### Get path to example source
examplePath <-
system.file("extdata", package="rock");
### Read a souce coded with the Qualitative Network Approach
qnaExample <-
rock::parse_source(
file.path(
examplePath,
"network-example-1.rock"
)
);
### Convert and show the topic map
cat(
rock::qna_to_tlm(
qnaExample
),
sep="\n"
);
[Package rock version 0.8.1 Index]