Skip to content

Commit

Permalink
fix: syntax error in modules
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jun 9, 2021
1 parent 42658f3 commit af106df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions build/modules.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import RdfjsSerializer from '@rdfjs/serializer-rdfjs'
import fs from 'fs'
import { vocabularies } from '../src'
import QuadExt from 'rdf-ext/lib/Quad'
import { identifier } from 'safe-identifier'
import { vocabularies } from '../src'

const rdfjsSerializer = new RdfjsSerializer({ module: 'ts' })

Expand Down Expand Up @@ -33,7 +34,7 @@ async function main () {
await Promise.all(codeModules)

const index = Object.keys(datasets).reduce((source, prefix) => {
return `${source}\nexport { default as ${prefix} } from './${prefix}'`
return `${source}\nexport { default as ${identifier(prefix)} } from './${prefix}'`
}, '')
fs.writeFileSync('./src/datasets/index.ts', index)
}
Expand Down
2 changes: 1 addition & 1 deletion ontologies/hyper-events.nq
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<https://hypermedia.app/events#EventHandler> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> <https://hypermedia.app/events#> .
<https://hypermedia.app/events#EventHandler> <http://www.w3.org/2000/01/rdf-schema#comment> "Class of event handlers which, run when specific Activity Stream events occurr in the system" <https://hypermedia.app/events#> .
<https://hypermedia.app/events#EventHandler> <http://www.w3.org/2000/01/rdf-schema#comment> "Class of event handlers which, run when specific Activity Stream events occur in the system" <https://hypermedia.app/events#> .
<https://hypermedia.app/events#eventSpec> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> <https://hypermedia.app/events#> .
<https://hypermedia.app/events#eventSpec> <http://www.w3.org/2000/01/rdf-schema#comment> "Object of this property is a predicate-object pair, defining what events a handler applies to" <https://hypermedia.app/events#> .
<https://hypermedia.app/events#eventSpec> <http://www.w3.org/2000/01/rdf-schema#domain> <https://hypermedia.app/events#EventHandler> <https://hypermedia.app/events#> .
Expand Down

0 comments on commit af106df

Please sign in to comment.