You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is also a simple command line program called `metaknowledge` that comes with the package. It allows for creating networks without any need to know Python. More information about it can be found at [networkslab.org/metaknowledge/cli]({{ site.baseurl }}/cli)
16
19
17
20
# Overview
18
21
19
-
This package can read the files downloaded from the [Thomson Reuters Web of Science](https://webofknowledge.com) (WOS) as plain text. These files contain metadata about scientific records, such as the authors, language, and citations. The records are saved in groups of up-to 500 individual records in a file.
22
+
This package can read the files downloaded from the [Thomson Reuters Web of Science](https://webofknowledge.com) (WOS) as plain text. These files contain metadata about scientific records, such as the authors, title, and citations. The records are exported in groups of up-to 500 individual records to a file.
20
23
21
24
The [metaknowledge.RecordCollection](#RecordCollection.RecordCollection) class can take a path to one or more of these files load and parse them. The object is the main way for work to be done on multiple records. For each individual record it creates an instance of the [metaknowledge.Record](#Record.Record) class that contains the results of the parsing of the record.
22
25
23
-
The files given by WOS are a flat database containing a series of 2 character tags, e.g. 'TI' is the title. Each WOS tag has one or more values and metaknowledge makes use of them to extract useful information. The approximate meanings of the tags are listed in the [tagProcessing](#tagProcessing.tagProcessing) package, if you simply want the mapping [`tagToFull()`](#metaknowledge.tagToFull) is a function that maps tags to their full names it as well as a few other similar functions are provided by metaknowledge. There are no full official public listings of tag the meanings available. metaknowledge is not attempting to provide the definitive or authoritative meanings. Some
26
+
The files given by WOS are a flat database containing a series of 2 character tags, e.g. 'TI' is the title. Each WOS tag has one or more values and metaknowledge can read them to extract useful information. The approximate meanings of the tags are listed in the [tagProcessing](#tagProcessing.tagProcessing) package, along with the parsing functions for each tag. If you simply want the mapping [`tagToFull()`](#metaknowledge.tagToFull) is a function that maps tags to their full names it, as well as a few other similar functions are provided by the base metaknowledge import. Note, the long names can be used in place of the short 2 character codes within metaknowledge. There are no full official public listings of tag the meanings available. metaknowledge is not attempting to provide the definitive or authoritative meanings.
24
27
25
-
As citations are of great importance to sociology their handling is done with the [Citation](#Citation.Citation) class. This class can parse the citations given by WOS as well as extra details about the full name of their journal and allow simple comparisons.
28
+
Citations are handled by a special [Citation](#Citation.Citation) class. This class can parse the citations given by WOS as well as extra details about the full name of their journal and allow simple comparisons.
26
29
27
-
Note for those reading the docstring metaknowledge's docs are written in markdown and are processed to produce the documentation found at [networkslab.org/metaknowledge/documentation](http://networkslab.org/metaknowledge/documentation/).
30
+
Note for those reading the docstrings metaknowledge's docs are written in markdown and are processed to produce the documentation found at [networkslab.org/metaknowledge/documentation]({{ site.baseurl }}/documentation/), but you should have no problem reading them from the help function.
28
31
"""
29
-
from .recordimportRecord, recordParser, BadISIRecord
32
+
from .recordimportRecord, recordParser, BadWOSRecord
30
33
from .citationimportCitation, BadCitation, filterNonJournals
31
-
from .recordCollectionimportRecordCollection, isiParser
parser.add_argument("--progress", "-p", action='store_true' ,default=False, help="Progress bar mode, shows progress bars where appropriate")
24
-
parser.add_argument("--suffix", "-s", default='', help="Progress bar mode, shows progress bars where appropriate")
26
+
parser.add_argument("--suffix", "-s", default='', help="The suffix of the WOS files you wish to extract Records from, by default all files are used and those that do not have Records are skipped")
25
27
returnparser.parse_args()
26
28
27
29
defyesorNo(prompt):
@@ -81,7 +83,7 @@ def getOutputName(clargs, suffix, prompt = "What do you wish to call the output
netID=int(inputMenu(netsDict, header="What type of network do you wish to create?", promptMsg="Input the number corresponding to the type of network you wish to generate? "))
220
222
ifnetID==1:
221
-
otg=getTag("What is the tag to use for the network? ")
223
+
otg=Tag("What is the tag to use for the network? ")
222
224
print("Generating a network using the {0} tag.".format(otg))
223
225
returninRC.oneModeNetwork(otg)
224
226
elifnetID==2:
225
-
tg1=getTag("What is the first tag to use for the network? ")
226
-
tg2=getTag("And the second tag? ")
227
+
tg1=Tag("What is the first tag to use for the network? ")
228
+
tg2=Tag("And the second tag? ")
227
229
print("Generating a network using the {0} and {1} tags.".format(tg1, tg2))
228
230
returninRC.twoModeNetwork(tg1, tg2)
229
231
elifnetID==3:
230
232
tgs= []
231
-
tgs.append(getTag("What is the first tag to use for the network? "))
232
-
innertag=getTag("And the next tag (leave blank to continue)? ", nMode=True)
233
+
tgs.append(Tag("What is the first tag to use for the network? "))
234
+
innertag=Tag("And the next tag (leave blank to continue)? ", nMode=True)
233
235
whileinnertag:
234
236
tgs.append(innertag)
235
-
innertag=getTag("And the next tag (leave blank to continue)? ", nMode=True)
237
+
innertag=Tag("And the next tag (leave blank to continue)? ", nMode=True)
236
238
print("Generating a network using the {0} and {1} tags".format(', '.join(tgs[:-1]), tgs[-1]))
0 commit comments