1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package ubic.basecode.ontology.jena;
20
21 import com.hp.hpl.jena.ontology.Restriction;
22 import com.hp.hpl.jena.rdf.model.Property;
23 import ubic.basecode.ontology.model.OntologyProperty;
24 import ubic.basecode.ontology.model.OntologyRestriction;
25
26 import java.util.Set;
27
28
29
30
31
32
33 abstract class OntologyRestrictionImpl extends OntologyTermImpl implements OntologyRestriction {
34
35 protected OntologyProperty restrictionOn;
36
37 public OntologyRestrictionImpl( Restriction resource, Set<Restriction> additionalRestrictions ) {
38 super( resource, additionalRestrictions );
39 this.restrictionOn = PropertyFactory.asProperty( resource.getOnProperty(), additionalRestrictions );
40 }
41
42 @Override
43 public OntologyProperty getRestrictionOn() {
44 return restrictionOn;
45 }
46
47 }