Skip to content

Commit

Permalink
KMS-525b: Checking in latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mandyparson committed Feb 20, 2025
1 parent 001e80a commit edee99c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const delay = (ms) => new Promise((resolve) => { setTimeout(resolve, ms) })
* Creates an rdf doc of all concepts by iterating through UUIDs, fetching their data in different formats, and synthesizing them into one .rdf
* @returns concepts.rdf in setup/data
*/
const convertFiles = async () => {
const convertFilestoRDF = async () => {
const { extractedUUIDs: extractedUUIDsData } = extractedUUIDs

// Create Root Document
Expand Down Expand Up @@ -79,4 +79,4 @@ const convertFiles = async () => {
}
}

convertFiles()
convertFilestoRDF()
4 changes: 2 additions & 2 deletions setup/scripts/extractUUIDs.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const conceptsPath = path.join(rootDir, 'data/raw_concepts_data.rdf')
*/
const extractUUIDs = async () => {
try {
// Read the concepts.rdf file
// Read the raw_concept_data.rdf file
const data = await fs.readFile(conceptsPath, 'utf8')

// Parse the XML
Expand All @@ -24,7 +24,7 @@ const extractUUIDs = async () => {

return rdfUUIDs
} catch (error) {
console.error('Error processing concepts.rdf:', error)
console.error('Error processing raw_concepts_data.rdf:', error)
throw error
}
}
Expand Down
2 changes: 1 addition & 1 deletion setup/scripts/load_rdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async function loadConcepts(filePath, batchSize = 100) {

async function main() {
try {
await loadConcepts('../data/concepts.rdf')
await loadConcepts('../data/convertedFiles.rdf')
console.log('All concepts loaded successfully')
} catch (error) {
console.error('Error loading concepts:', error)
Expand Down
2 changes: 1 addition & 1 deletion setup/setupRdf4j.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const loadRDFXMLToRDF4J = async (filePath) => {
* @async
*/
const main = async () => {
const inputFile = 'setup/data/concepts.rdf'
const inputFile = 'setup/data/convertedFiles.rdf'

try {
const serverRunning = await checkRDF4JServer(baseUrl)
Expand Down

0 comments on commit edee99c

Please sign in to comment.