Questions tagged [semantics]

The study of meaning as it applies to programming languages

Semantics is the study of meaning. In computer programming, semantics refers to the relationships between symbols in a programming language, and how those symbols are combined and manipulated to produce a computing result.

Useful links

1728 questions
0
votes
1 answer

Recursive object property in owl

Can we model an object property to be recursive in owl? If not is there any work around? E.g. I want to define workflow as a class in owl. Task and getSubTasks are class and object property in my ontology respectively. I want to model workflow as…
0
votes
1 answer

Variable/constant declaration difference

Which of those is best and is any of these declarations per se redundant? let imageView: UIImageView = UIImageView() // [1] let imageView = UIImageView() // [2] let imageView: UIImageView! // [3] let imageView:…
leyke077
  • 59
  • 7
0
votes
1 answer

C++: move / forwarding / rvalue delegation shenanigans

Try running this test program : #include class A { public: A() { std::cout << "empty constructor" << std::endl; } A(const A &a) { std::cout << "copy constructor" << std::endl; } A(A…
bombax
  • 1,189
  • 8
  • 26
0
votes
1 answer

Systemtap libdwfl error on Linux

I am tying to work/setup the Systemtap tool for profiling OS procesess, on a Virtual Linux. I am using VirtualBox to run the image. Via rpm -q kernel and cat /proc/version The version obtained is: Linux version 2.6.32-5-686 (Debian…
DarkCygnus
  • 7,420
  • 4
  • 36
  • 59
0
votes
1 answer

Seo Heading when can't use heading tags

I've got a few places on my page where I can't use heading elements due to semantic HTML but I need them there for SEO. Or at least something that will help the SEO. I know I can't just add an H3 nearby and hide it as the bots might flag it. So for…
Chito
  • 21
  • 1
0
votes
6 answers

String similarity (semantic meaning) in python

How can I calculate the string similarity (semantic meaning) between 2 string? For example if I have 2 string like "Display" and "Screen" the string similarity must be close to 100% If I have "Display" and "Color" the screen similarity must be close…
Usi Usi
  • 2,967
  • 5
  • 38
  • 69
0
votes
2 answers

Consistent use of primitives and wrapped primitives

If I would use int for a specific variable, but would have to deal with some kind of collection with it, which means the int will get converted into wrapped int/int object and vice versa many times, it makes sense that in this case, it would be…
user2340939
  • 1,791
  • 2
  • 17
  • 44
0
votes
1 answer

comparing two OWLs to determine similarity

I have two OWL files each file describes what a receipt is, OWL-A has class named RecBody with property hasItem. OWL-B has the same class but has a property called hasField. both are identical My question is how specify to the RDF engine that…
0
votes
1 answer

Organizing project via Java packages and access modifiers for "project internal vs public" functions

I am working on a project that is best organized by at least two packages. For example, com.mycompany.core and com.mycompany.ui. The "core" package wants to expose certain functions to just the "ui" package, without exposing it to the outside…
Phoeniyx
  • 542
  • 4
  • 15
0
votes
2 answers

Can I use
to display input, select,..?

Here's the scenario: If it was all text then I would use all dl tags. However, there are some input, checkboxes, dropdown list. Is it semantics to use dt and dd? If not, what tag is the most appropriate? Thank you
Long Nguyen
  • 153
  • 2
  • 3
  • 10
0
votes
1 answer

HTML - How to properly mark a phrase

The
tag demand a cite external source, but what if the only source is the name of the phrase author? The tag defines the name of a work (e.g. a book, a song, a movie, a TV show, a painting, a sculpture, etc.), so it's no suitable…
0
votes
2 answers

How to use WordNet similarity perl modules in Python?

I want to use perl modules from WordNet::Similarity package to calculate semantic relatedness(Hirst-St Onge, Lexical chains, etc.) between texts. Does anybody have idea about how to use them in python?
Spy
  • 13
  • 3
0
votes
1 answer

Date modelling using ontology concepts

Problem: I need to create an ontology (say www.example.com/ontology/ont# , with ONT prefix). This ontology consists of some other ontologies with prefixes as SSN, TIME, GEO, etc. Now, the confusion is that when I use ONT ontology for data modelling,…
Haroon Lone
  • 2,837
  • 5
  • 29
  • 65
0
votes
2 answers

What's this Coffescript use of then?

In Trevor Burnham's book on Coffeescript (p81) he has newcard.save().then => ... Which is not part of a conditional or a switch statement. Is then just a joining word for the syntax or does it have a semantic purpose?
iainH
  • 1,044
  • 10
  • 19
0
votes
1 answer

SPDY on shared host & SEO Semantics

NodeSPDY on shared host I got a webspace hosted by uberspace and want to use NodeSPDY, but there is a loadbalancer in between which cuts off the tls connection. On uberspace one can request a Port to be opened. With this port it is possible to…
ChaosClown
  • 367
  • 2
  • 16