Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Alignment API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
moex
Alignment API
Commits
3d18f496
Commit
3d18f496
authored
18 years ago
by
Jérôme Euzenat
Browse files
Options
Downloads
Patches
Plain Diff
- implemented metadata() primitive
parent
89ff24c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fr/inrialpes/exmo/align/service/AServProtocolManager.java
+22
-7
22 additions, 7 deletions
...fr/inrialpes/exmo/align/service/AServProtocolManager.java
with
22 additions
and
7 deletions
src/fr/inrialpes/exmo/align/service/AServProtocolManager.java
+
22
−
7
View file @
3d18f496
...
...
@@ -21,6 +21,7 @@
package
fr.inrialpes.exmo.align.service
;
import
fr.inrialpes.exmo.align.parser.AlignmentParser
;
import
fr.inrialpes.exmo.align.impl.BasicParameters
;
import
org.semanticweb.owl.align.Parameters
;
import
org.semanticweb.owl.align.Alignment
;
...
...
@@ -376,13 +377,27 @@ public class AServProtocolManager {
return
new
AlignmentId
(
newId
(),
mess
,
myId
,
mess
.
getSender
(),
id
,(
Parameters
)
null
);
}
public
Message
getmetadata
(
Message
mess
){
//\prul{get-processor-success}{a - request ( metadata ( n )) \rightarrow S}{\langle O, O', A\rangle \Leftarrow Retrieve(n)\\P\Leftarrow Metadata(A)\\S - inform ( P~language:~l ) \rightarrow a}{Retrieve(n)\not=\emptyset}
//\prul{get-processor-unknown}{a - request ( metadata ( n )) \rightarrow S}{S - failure ( unknown (n) ) \rightarrow a}{Retrieve(n)=\emptyset}
return
new
RenderedAlignment
(
newId
(),
mess
,
myId
,
mess
.
getSender
(),
"dummy//"
,(
Parameters
)
null
);
/*
* Returns only the metadata of an alignment and returns it in
* parameters
*/
public
Message
metadata
(
Message
mess
){
// Retrieve the alignment
String
id
=
(
String
)
mess
.
getParameters
().
getParameter
(
"id"
);
Alignment
al
=
null
;
try
{
al
=
alignmentCache
.
getMetadata
(
id
);
}
catch
(
Exception
e
)
{
return
new
UnknownAlignment
(
newId
(),
mess
,
myId
,
mess
.
getSender
(),
id
,(
Parameters
)
null
);
}
// Put all the local metadata in parameters
Parameters
params
=
new
BasicParameters
();
Parameters
extensions
=
al
.
getExtensions
();
for
(
Enumeration
e
=
extensions
.
getNames
();
e
.
hasMoreElements
();
){
String
name
=
(
String
)
e
.
nextElement
();
params
.
setParameter
(
name
,
extensions
.
getParameter
(
name
)
);
}
return
new
AlignmentMetadata
(
newId
(),
mess
,
myId
,
mess
.
getSender
(),
"dummy//"
,
params
);
}
/*********************************************************************
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment