bibtex entries
type: Class
type: SoftwareAgent
type: PythonScript
subclass of: Activity
qualified derivation: Derivation
  entity: bibtex input
value: import bibtexparser bib_database = bibtexparser.load(bibtex_file) result = enumerate(bib_database.entries)

create article uri
type: Class
type: SoftwareAgent
type: PythonScript
subclass of: Activity
value: import rdflib global rdflib global base_uri collection = this.graph.value(predicate=rdflib.RDF.type, object=rdflib.URIRef("https://www.iana.org/assignments/media-types/application/x-bibtex")) base_uri = rdflib.Namespace(collection+'/') global doi doi = rdflib.Namespace("http://dx.doi.org/") def result(entry): if 'doi' in entry: return doi[entry['doi']] else: return base_uri[entry['ID']] result.base_uri = base_uri result.collection = collection

author fn ln
type: Class
type: SoftwareAgent
type: PythonScript
subclass of: Activity
value: import re global re def result(author): if ',' in author: ln, fn = re.split('\\s*,\\s*', author) else: names = re.split('\\s+', author) fn = names[0] ln = ' '.join(names[1:]) return fn, ln

create date
type: Class
type: SoftwareAgent
type: PythonScript
subclass of: Activity
value: import re global re def result(row): date = row['year'] months = ['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec'] if 'month' in row: for i, m in enumerate(months): if m in row['month'].lower(): return date + '-'+str(i+1) return date

bib resource types
type: Class
type: SoftwareAgent
type: PythonScript
subclass of: Activity
value: result = { 'article' : ["dcterms:BibliographicResource",'bibo:AcademicArticle'], 'book' : ["dcterms:BibliographicResource",'bibo:Book'], 'booklet' : ["dcterms:BibliographicResource",'http://purl.org/net/nknouf/ns/bibtex#Booklet'], 'inbook' : ["dcterms:BibliographicResource",'bibo:Chapter'], 'incollection' : ["dcterms:BibliographicResource",'bibo:BookSection'], 'inproceedings' : ["dcterms:BibliographicResource","http://vivoweb.org/ontology/core#ConferencePaper"], 'manual' : ["dcterms:BibliographicResource","bibo:Manual"], 'mastersthesis' : ["dcterms:BibliographicResource",'http://purl.org/net/nknouf/ns/bibtex#Mastersthesis', 'bibo:Thesis'], 'misc' : ["dcterms:BibliographicResource"], 'phdthesis' : ["dcterms:BibliographicResource",'http://purl.org/net/nknouf/ns/bibtex#Phdthesis', 'bibo:Thesis'], 'proceedings' : ["dcterms:BibliographicResource",'bibo:Proceedings'], 'techreport' : ["dcterms:BibliographicResource",'http://purl.org/spar/fabio/TechnicalReport','bibo:Report'], 'unpublished' : ["dcterms:BibliographicResource",'bibo:Manuscript'], }

bibtex collection
type: Dataset
was generated by: BibTeXSETL
was generated by: Transform
  type: JSLDT
  used: bibtex entries
  qualified usage: Usage
    entity: create article uri
  qualified usage: Usage
    entity: bib resource types
  qualified usage: Usage
    entity: author fn ln
  qualified usage: Usage
    entity: create date
  has context: { "@vocab" : "http://hadatac.org/ont/chear#", "dataset" : "https://hbgd.tw.rpi.edu/dataset/", "sio" : "http://semanticscience.org/resource/", "skos" : "http://www.w3.org/2004/02/skos/core#", "dcterms" : "http://purl.org/dc/terms/", "prov" : "http://www.w3.org/ns/prov#", "bibo" : "http://purl.org/ontology/bibo/", "rdfs" : "http://www.w3.org/2000/01/rdf-schema#", "foaf" : "http://xmlns.com/foaf/0.1/", "void" : "http://rdfs.org/ns/void#" }
  value: [{ "@context" : { "authorList" : {"@id" : "bibo:authorList", "@type": "@list"} }, "@id" : "{{create_article_uri(row)}}", "@type" : [ { "@for" : "t in bib_resource_types[row['ENTRYTYPE']]", "@do" : "{{t}}"}], "dcterms:creator" : [ { "@if" : "'author' in row", "@for" : "author in re.split('\\s*and\\s*', row['author'])", "@do" : { "@with" : "author_fn_ln(author) as fn, ln", "@do" : { "@id" : "{{create_article_uri.base_uri}}author/{{slugify(' '.join([fn, ln]))}}", "@type" : "foaf:Person", "foaf:familyName" : "{{ln}}", "foaf:givenName" : "{{fn}}", "foaf:name" : "{{fn}} {{ln}}" } } } ], "authorList" : [ { "@if" : "'author' in row", "@for" : "author in re.split('\\s*and\\s*', row['author'])", "@do" : { "@with" : "author_fn_ln(author) as fn, ln", "@do" : { "@id" : "{{create_article_uri.base_uri}}author/{{slugify(' '.join([fn, ln]))}}" } } } ], "dcterms:abstract" : [ { "@if" : "'abstract' in row", "@value" : "{{row['abstract']}}" } ], "skos:editorialNote" : [ { "@if" : "'annote' in row", "@value" : "{{row['annote']}}" }, { "@if" : "'note' in row", "@value" : "{{row['note']}}" } ], "dcterms:title" : [ { "@if" : "'title' in row", "@value" : "{{row['title']}}" } ], "dcterms:publisher" : [ { "@if" : "'publisher' in row", "@id" : "{{create_article_uri.base_uri}}publisher/{{slugify(row['publisher'])}}", "rdfs:label" : "{{row['publisher']}}", "http://schemas.talis.com/2005/address/schema#localityName" : [ { "@if" : "'address' in row", "@value" : "{{row['address']}}" } ] }, { "@if" : "'institution' in row", "@id" : "{{create_article_uri.base_uri}}institution/{{slugify(row['institution'])}}", "rdfs:label" : "{{row['institution']}}", "http://schemas.talis.com/2005/address/schema#localityName" : [ { "@if" : "'address' in row", "@value" : "{{row['address']}}" } ] }, { "@if" : "'school' in row", "@id" : "{{create_article_uri.base_uri}}institution/{{slugify(row['school'])}}", "rdfs:label" : "{{row['school']}}", "http://schemas.talis.com/2005/address/schema#localityName" : [ { "@if" : "'ad…