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

Protege SWRL rules

I've been trying to define rules in my ontology to infer that if a person has friends who are friends amongst each other then all are friends, but if 1 or more are not friends to each other then my ontology will infer that they all, are not…
0
votes
3 answers

Find Specific Rows

I'm trying to build a rather specific query to find a set of user_ids based on topics they have registered to. Unfortunately it's not possible to refactor the tables so I have to go with what I've got. Single table with user_id and registration_id I…
TomCDona
  • 150
  • 2
  • 10
0
votes
1 answer

Get geographical coordinates of a particular place from DbPedia

I need to get the co-ordinates of some particular places from DbPedia. For the same I am using following snippet: PREFIX geo: PREFIX dbo: PREFIX foaf:…
Haroon Lone
  • 2,837
  • 5
  • 29
  • 65
0
votes
1 answer

Protege Equivalent to query

Please help to list all Mealcourse from the wine Ontology or happy to receive useful links like this one :Sparql query on restriction list (Equivalent To) in protégé MealCourse and (hasFood value Pizza) and(hasDrink value Wine) Thank you
0
votes
1 answer

Sparql query subPropertyOf

This is a small ontology to get the color combination and their reviews For example (red combinesWith black and hasReview "perfect Match") Is there a better way of doing this? I'm trying to query SubPropertyOf. Is it possible to do- :hasReview…
0
votes
2 answers

Searching for a semantic syntax highlighter in Javascript

OK, I know, there are literally dozens of already available syntax highlighters out there. But I want one specifically, that implements line numbers through
    lists. And that reduces the number of possible candidates to one, Lighter.js.…
Boldewyn
  • 81,211
  • 44
  • 156
  • 212
0
votes
1 answer

Loop semantics(literal)

If you don't care what your variables are called LOOK AWAY!! Anyway, lets say I have a loop for (int i = start; i < whatisthis; i++) { //something } I'm not sure what to call "whatisthis", usually I can call it the length or the size of the…
user81993
  • 6,167
  • 6
  • 32
  • 64
0
votes
1 answer

API for storing binary blobs

I'm doing some moderately low-level programming of an embedded device that has some NVRAM we plan to use for retaining values between runs of a program. We'd like to abstract the operations into an API over a driver or talking to a daemon. This is…
Chris Nelson
  • 3,519
  • 7
  • 40
  • 51
0
votes
1 answer

Coding clean semantic HTML5 li vs Div

I'm creating a webpage to display a list of Car parts. The page divided into sections, each section holds two columns (one for each car part). Is there a cleaner more efficient way of semantically representing the code below? Can this be done using…
PtoK
  • 15
  • 3
0
votes
1 answer

Blank .gif with background image to display icons – semantic meaning?

In this article, an interesting technique to embed icons is presented: .chromium { background:url(//ssl.google.com/imagepath.png) no-repeat; width:250px; height:250px; } The above 'Google' technique I…
Sven
  • 12,997
  • 27
  • 90
  • 148
0
votes
0 answers

Where should I place child collection methods in ASP.NET Web Api?

This question is probably debatable, but I think there should be a solution that has more advantages than the other. If I have two controllers - UsersController and ContactsController and the corresponding URIs to them /api/users/ and…
Yulian
  • 6,262
  • 10
  • 65
  • 92
0
votes
1 answer

SDWebImage Apple LLVM 6.0 Error

I am new for iOS development LLVM related issue already posted on stackoverflow but I thought it is new with SDWebImage, Or If I am wrong please suggest on that. I want to make tableview with async image loading. As per my R&D SDWebImage is best.…
0
votes
1 answer

How to structure a conversation in html, as in a novel?

A dialogue between 2 guys, in a novel : ― Hello, said John. How are you? ― Fine, said Jack. ― Cool ! What is the best semantic practice for this representation in HTML5, please ?
...
...
...
or
user4034421
0
votes
2 answers

None being printed in middle of program?

I am creating a simple scrabble style game for an online Python course. I have the concept down very well in this problem set and my program is working completely fine. Only problem is, in the console output where the user plays the game, a random…
Jordan
  • 902
  • 2
  • 10
  • 37
0
votes
1 answer

problem with threads

I want to be done for 10 times, to scan the number and print it again. How can I do that? #include #include #include sem_t m; int n; void *readnumber(void *arg) { scanf("%d",&n); …
Nadeem
  • 1