Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Macao Legacy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MACAO
Macao Legacy
Merge requests
!5
Resolve "Parseur par type d'activité"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Parseur par type d'activité"
23-parse-activities
into
main
Overview
0
Commits
24
Pipelines
0
Changes
2
Merged
Resolve "Parseur par type d'activité"
David Rouquet
requested to merge
23-parse-activities
into
main
5 months ago
Overview
0
Commits
24
Pipelines
0
Changes
2
Closes
#23 (closed)
0
0
Merge request reports
Viewing commit
5f723d6c
Prev
Next
Show latest version
2 files
+
10
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
5f723d6c
allow TAT choice text html->md
· 5f723d6c
David Rouquet
authored
6 months ago
tetras_extraction/script/src/extract_page.py
+
1
−
1
View file @ 5f723d6c
Edit in single-file editor
Open in Web IDE
Show full file
@@ -335,7 +335,7 @@ class ExerciceTAT(Exercice):
graph
.
add
((
segment_uri
,
RDF
.
type
,
NS
[
"
Segment
"
]))
graph
.
add
((
segment_uri
,
NS
[
"
index
"
],
Literal
(
index
)))
if
isinstance
(
segment
,
str
):
graph
.
add
((
segment_uri
,
NS
[
"
text
"
],
Literal
(
segment
)))
graph
.
add
((
segment_uri
,
NS
[
"
html
"
],
Literal
(
segment
)))
else
:
graph
.
add
((
segment_uri
,
RDF
.
type
,
NS
[
"
Champ
"
]))
segment
.
save
(
graph
,
rdf_name
)
Loading