Skip to content

StabiBerlin/svc-metaglossar-convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svc-metaglossar-convert

SlaVaComp-Metaglossar conversion files.

Conversion files

the php main script converts a set of files from the present object-oriented XML-TEI format into a relationally oriented Solr-XML format that can be indexed dynamically.

At the same time, the script generates a list of all available characters (Unicode-based letters and the diacritical marks), which can serve as a mapping table for a multilingual and multiscript search.

The scripts will work with any version of PHP. PHP-CLI 7.2 and higher is recommended.

  • svc_process.php - Reads the XML data from the ./xml directory, processes it and saves it as slcmp_4solr-YYYMMDD.xml
  • graph_metagls.gv - graphviz file with the structure of data

The exact structure of the complex content is mapped in digraph g (which is recorded as a graphviz file).

digraph g{ 

	graph [layout = dot , overlap = false, splines=true, rankdir=LR]

	#title [label="SlaVaComp-MGL (TEI-XML -> SOLR)", labelloc=t, fontsize=24];
	
	subgraph cluster_1 {
    lemma -> lemma_hyperlemma
    lemma -> lemma_grm
	}
    lemma -> lemma_cit 
    lemma -> variant 
	
	subgraph cluster_2 {
	lemma_cit -> hyperlemma
			 lemma_cit -> lemma_cit_scr
			 lemma_cit -> lemma_cit_grm
			 }
 
 	subgraph cluster_3 {
	variant -> variant_gra
	variant -> variant_hyperlemma
	variant -> variant_src
	variant -> variant_cit
	subgraph cluster_4 {
			 variant_cit -> variant_cit_scr
			 variant_cit -> variant_cit_grm
			 variant_cit -> variant_cit_hyperlemma
			 }
			 
	}

graph_metagls

The SlaVaComp-Metaglossar data are already indexed and can be searched via a widget of the Slavistik-Portal (Bootstrap 4.6. based).

About

SlaVaComp-Metaglossar conversion files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages